chore(deps): update dependency infection/infection to ^0.27.0 (#197) #1190
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
{
|