Skip to content

feat: add @throws #1201

feat: add @throws

feat: add @throws #1201

Triggered via pull request October 16, 2023 08:31
@simPodsimPod
opened #210
throws
Status Success
Total duration 59s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

infection.yml

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

Annotations

3 warnings
Infection: src/Client/Http/RequestFactory.php#L50
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 {