Skip to content

Commit fada746

Browse files
authored
Fixes reporting deprecations when logger is not ready yet (#39938)
1 parent c3ca14c commit fada746

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Foundation/Bootstrap/HandleExceptions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public function handleError($level, $message, $file = '', $line = 0, $context =
8686
*/
8787
public function handleDeprecation($message, $file, $line)
8888
{
89+
if (! class_exists(LogManager::class)) {
90+
return;
91+
}
92+
8993
try {
9094
$logger = $this->app->make(LogManager::class);
9195
} catch (Exception $e) {

0 commit comments

Comments
 (0)