Skip to content

Commit

Permalink
Fixes reporting deprecations when logger is not ready yet (laravel#39938
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nunomaduro authored Dec 8, 2021
1 parent c3ca14c commit fada746
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Foundation/Bootstrap/HandleExceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ public function handleError($level, $message, $file = '', $line = 0, $context =
*/
public function handleDeprecation($message, $file, $line)
{
if (! class_exists(LogManager::class)) {
return;
}

try {
$logger = $this->app->make(LogManager::class);
} catch (Exception $e) {
Expand Down

0 comments on commit fada746

Please sign in to comment.