Skip to content

Commit e049a22

Browse files
committed
Revert change to ArrayLogger
1 parent 1a49537 commit e049a22

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ArrayLogger.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use SimpleSAML\Configuration;
88
use SimpleSAML\Logger\LoggingHandlerInterface;
99

10-
use function array_merge;
11-
1210
/**
1311
*/
1412
class ArrayLogger implements LoggingHandlerInterface
@@ -28,7 +26,7 @@ public function __construct(Configuration $config)
2826

2927
public function log(int $level, string $str): void
3028
{
31-
$this->logs[$level] = array_merge($this->logs[$level], [$str]);
29+
$this->logs[$level][] = $str;
3230
}
3331

3432

0 commit comments

Comments
 (0)