Skip to content

Commit 803f107

Browse files
authored
feat: do not filter out LoggerChain in LoggerChain (#213)
1 parent 8f783ee commit 803f107

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/Logger/LoggerChain.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,11 @@
44

55
namespace SimPod\ClickHouseClient\Logger;
66

7-
use function array_filter;
8-
97
final class LoggerChain implements SqlLogger
108
{
11-
/** @var SqlLogger[] */
12-
private array $loggers;
13-
149
/** @param SqlLogger[] $loggers */
15-
public function __construct(array $loggers = [])
10+
public function __construct(private array $loggers = [])
1611
{
17-
$this->loggers = array_filter(
18-
$loggers,
19-
static fn (SqlLogger $logger): bool => ! $logger instanceof self,
20-
);
2112
}
2213

2314
public function startQuery(string $id, string $sql): void

0 commit comments

Comments
 (0)