We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f783ee commit 803f107Copy full SHA for 803f107
1 file changed
src/Logger/LoggerChain.php
@@ -4,20 +4,11 @@
4
5
namespace SimPod\ClickHouseClient\Logger;
6
7
-use function array_filter;
8
-
9
final class LoggerChain implements SqlLogger
10
{
11
- /** @var SqlLogger[] */
12
- private array $loggers;
13
14
/** @param SqlLogger[] $loggers */
15
- public function __construct(array $loggers = [])
+ public function __construct(private array $loggers = [])
16
17
- $this->loggers = array_filter(
18
- $loggers,
19
- static fn (SqlLogger $logger): bool => ! $logger instanceof self,
20
- );
21
}
22
23
public function startQuery(string $id, string $sql): void
0 commit comments