Skip to content

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

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

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

Triggered via push September 4, 2023 14:44
Status Success
Total duration 2m 4s
Artifacts

infection.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 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/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 {