We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9a28fe commit 2190386Copy full SHA for 2190386
src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
@@ -308,6 +308,12 @@ public function dump(array $options = [])
308
require $autoloadFile;
309
require __DIR__.'/Container{$hash}/{$options['class']}.php';
310
311
+if (80000 <= \PHP_VERSION_ID && \PHP_VERSION_ID < 80100) {
312
+ // Preloading on PHP 8.0 fails with a fatal error when typed properties are used
313
+ // if some of those types are referencing optional and non-installed dependencies.
314
+ return;
315
+}
316
+
317
\$classes = [];
318
319
EOF;
0 commit comments