Skip to content

Commit b27366e

Browse files
committed
add union type
1 parent 607143c commit b27366e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Model/Logger/Handler/Debug.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,16 @@
77

88
namespace Magento\CloudComponents\Model\Logger\Handler;
99

10-
use Monolog\LogRecord;
11-
1210
/**
1311
* Debug handler which doesn't require debug mode enabled
1412
*/
1513
class Debug extends \Magento\Framework\Logger\Handler\Debug
1614
{
1715
/**
18-
* @param array $record
16+
* @param \Monolog\LogRecord | array $record
1917
* @return mixed
2018
*/
21-
public function isHandling(LogRecord $record): bool
19+
public function isHandling(\Monolog\LogRecord|array $record): bool
2220
{
2321
return parent::isHandling($record);
2422
}

0 commit comments

Comments
 (0)