Skip to content

Commit 76176d9

Browse files
fix merge
1 parent 55374b5 commit 76176d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,13 +635,13 @@ protected function initializeContainer()
635635

636636
$oldContainer = file_exists($cache->getPath()) && is_object($oldContainer = include $cache->getPath()) ? new \ReflectionClass($oldContainer) : false;
637637
} finally {
638-
if ($this->debug && true !== $previousHandler) {
638+
if (!$this->debug) {
639+
error_reporting($errorLevel);
640+
} elseif (true !== $previousHandler) {
639641
restore_error_handler();
640642

641643
file_put_contents($cacheDir.'/'.$class.'Deprecations.log', serialize(array_values($collectedLogs)));
642644
file_put_contents($cacheDir.'/'.$class.'Compiler.log', null !== $container ? implode("\n", $container->getCompiler()->getLog()) : '');
643-
} else {
644-
error_reporting($errorLevel);
645645
}
646646
}
647647

0 commit comments

Comments
 (0)