Skip to content

Commit 75c4e47

Browse files
authored
Merge pull request #1069 from humanmade/backport-1068-to-v25-branch
[Backport v25-branch] Fixes a compatibility issue with Monolog 3.x
2 parents 7c095ad + 65ff4f5 commit 75c4e47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

inc/class-loggerexceptionhandler.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Altis\Cloud;
99

1010
use Monolog\Handler\HandlerWrapper;
11+
use Monolog\LogRecord;
1112
use Throwable;
1213

1314
/**
@@ -18,10 +19,11 @@ class LoggerExceptionHandler extends HandlerWrapper {
1819
/**
1920
* Check handler for exceptions.
2021
*
21-
* @param array $record The structured error log record.
22+
* @param LogRecord $record The structured error log record.
23+
*
2224
* @return bool
2325
*/
24-
public function handle( array $record ) : bool {
26+
public function handle( LogRecord $record ) : bool {
2527
try {
2628
return $this->handler->handle( $record );
2729
} catch ( Throwable $e ) {

0 commit comments

Comments
 (0)