Skip to content

Commit

Permalink
Remove old monolog 1.x compat code (#42392)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored May 16, 2022
1 parent 42ff290 commit 071af6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Log/LogManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ protected function prepareHandler(HandlerInterface $handler, array $config = [])
$handler = new FingersCrossedHandler($handler, $this->actionLevel($config));
}

if (Monolog::API !== 1 && (Monolog::API !== 2 || ! $handler instanceof FormattableHandlerInterface)) {
if (! $handler instanceof FormattableHandlerInterface) {
return $handler;
}

Expand Down

0 comments on commit 071af6c

Please sign in to comment.