File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Symfony/Component/HttpKernel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -635,13 +635,13 @@ protected function initializeContainer()
635
635
636
636
$ oldContainer = file_exists ($ cache ->getPath ()) && is_object ($ oldContainer = include $ cache ->getPath ()) ? new \ReflectionClass ($ oldContainer ) : false ;
637
637
} finally {
638
- if ($ this ->debug && true !== $ previousHandler ) {
638
+ if (!$ this ->debug ) {
639
+ error_reporting ($ errorLevel );
640
+ } elseif (true !== $ previousHandler ) {
639
641
restore_error_handler ();
640
642
641
643
file_put_contents ($ cacheDir .'/ ' .$ class .'Deprecations.log ' , serialize (array_values ($ collectedLogs )));
642
644
file_put_contents ($ cacheDir .'/ ' .$ class .'Compiler.log ' , null !== $ container ? implode ("\n" , $ container ->getCompiler ()->getLog ()) : '' );
643
- } else {
644
- error_reporting ($ errorLevel );
645
645
}
646
646
}
647
647
You can’t perform that action at this time.
0 commit comments