We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a49537 commit e049a22Copy full SHA for e049a22
1 file changed
src/ArrayLogger.php
@@ -7,8 +7,6 @@
7
use SimpleSAML\Configuration;
8
use SimpleSAML\Logger\LoggingHandlerInterface;
9
10
-use function array_merge;
11
-
12
/**
13
*/
14
class ArrayLogger implements LoggingHandlerInterface
@@ -28,7 +26,7 @@ public function __construct(Configuration $config)
28
26
29
27
public function log(int $level, string $str): void
30
{
31
- $this->logs[$level] = array_merge($this->logs[$level], [$str]);
+ $this->logs[$level][] = $str;
32
}
33
34
0 commit comments