Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72e189a

Browse files
Merge branch '4.0'
* 4.0: fix merge
2 parents 7ecfc7f + 527f7e4 commit 72e189a

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
@@ -505,13 +505,13 @@ protected function initializeContainer()
505505

506506
$oldContainer = file_exists($cache->getPath()) && is_object($oldContainer = include $cache->getPath()) ? new \ReflectionClass($oldContainer) : false;
507507
} finally {
508-
if ($this->debug && true !== $previousHandler) {
508+
if (!$this->debug) {
509+
error_reporting($errorLevel);
510+
} elseif (true !== $previousHandler) {
509511
restore_error_handler();
510512

511513
file_put_contents($cacheDir.'/'.$class.'Deprecations.log', serialize(array_values($collectedLogs)));
512514
file_put_contents($cacheDir.'/'.$class.'Compiler.log', null !== $container ? implode("\n", $container->getCompiler()->getLog()) : '');
513-
} else {
514-
error_reporting($errorLevel);
515515
}
516516
}
517517

0 commit comments

Comments
 (0)