Skip to content

Commit cde9ee8

Browse files
committed
[HttpKernel] [Kernel] Silence deprecations logs writes
1 parent 1c4e23b commit cde9ee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ protected function initializeContainer()
598598
if ($collectDeprecations) {
599599
restore_error_handler();
600600

601-
file_put_contents($cacheDir.'/'.$class.'Deprecations.log', serialize(array_values($collectedLogs)));
602-
file_put_contents($cacheDir.'/'.$class.'Compiler.log', null !== $container ? implode("\n", $container->getCompiler()->getLog()) : '');
601+
@file_put_contents($cacheDir.'/'.$class.'Deprecations.log', serialize(array_values($collectedLogs)));
602+
@file_put_contents($cacheDir.'/'.$class.'Compiler.log', null !== $container ? implode("\n", $container->getCompiler()->getLog()) : '');
603603
}
604604
}
605605

0 commit comments

Comments
 (0)