Skip to content

chore(deps): update dependency infection/infection to ^0.27.0 #1189

chore(deps): update dependency infection/infection to ^0.27.0

chore(deps): update dependency infection/infection to ^0.27.0 #1189

Triggered via pull request September 4, 2023 14:35
Status Success
Total duration 4m 29s
Artifacts

infection.yml

on: pull_request
Infection
58s
Infection
Fit to window
Zoom out
Zoom in

Annotations

4 warnings
Infection: src/Client/Http/RequestFactory.php#L48
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ $uri = $this->uriFactory->createUri($uri); } $uriQuery = $uri->getQuery(); - $uri = $uri->withQuery($uriQuery . ($uriQuery !== '' && $query !== '' ? '&' : '') . $query); + $uri = $uri->withQuery($uriQuery . ($uriQuery !== '' || $query !== '' ? '&' : '') . $query); return $this->requestFactory->createRequest('POST', $uri)->withBody($this->streamFactory->createStream($requestOptions->sql)); } }
Infection: src/Client/PsrClickHouseClient.php#L99
Escaped Mutant for Mutator "Identical": --- Original +++ New @@ @@ if ($values === []) { throw CannotInsert::noValues(); } - if ($columns === null) { + if ($columns !== null) { $firstRow = $values[array_key_first($values)]; $columns = array_keys($firstRow); if (is_int($columns[0])) {
Infection: src/Logger/LoggerChain.php#L17
Escaped Mutant for Mutator "UnwrapArrayFilter": --- Original +++ New @@ @@ /** @param SqlLogger[] $loggers */ public function __construct(array $loggers = []) { - $this->loggers = array_filter($loggers, static fn(SqlLogger $logger): bool => !$logger instanceof self); + $this->loggers = $loggers; } public function startQuery(string $id, string $sql) : void {
Infection: src/Logger/LoggerChain.php#L19
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ /** @param SqlLogger[] $loggers */ public function __construct(array $loggers = []) { - $this->loggers = array_filter($loggers, static fn(SqlLogger $logger): bool => !$logger instanceof self); + $this->loggers = array_filter($loggers, static fn(SqlLogger $logger): bool => !false); } public function startQuery(string $id, string $sql) : void {