chore(deps): update dependency infection/infection to ^0.32.0 #1571
Annotations
10 warnings
|
Infection:
src/Client/PsrClickHouseAsyncClient.php#L123
Escaped Mutant for Mutator "NullSafeMethodCall":
@@ @@
return $processResponse($response);
},
- fn () => $this->sqlLogger?->stopQuery($id),
+ fn () => $this->sqlLogger->stopQuery($id),
);
}
}
|
|
Infection:
src/Client/PsrClickHouseAsyncClient.php#L111
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
)
->then(
function (ResponseInterface $response) use ($id, $processResponse) {
- $this->sqlLogger?->stopQuery($id);
+
if ($response->getStatusCode() !== 200) {
throw ServerError::fromResponse($response);
|
|
Infection:
src/Client/PsrClickHouseAsyncClient.php#L104
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
);
$id = uniqid('', true);
- $this->sqlLogger?->startQuery($id, $sql);
+
return Create::promiseFor(
$this->asyncClient->sendAsyncRequest($request),
|
|
Infection:
src/Client/Http/RequestFactory.php#L116
Escaped Mutant for Mutator "FalseValue":
@@ @@
$streamElements[] = [
'name' => 'param_' . $name,
- 'contents' => $this->paramValueConverterRegistry->get($type)($value, $type, false),
+ 'contents' => $this->paramValueConverterRegistry->get($type)($value, $type, true),
];
}
|
|
Infection:
src/Client/Http/RequestFactory.php#L98
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
/** @var array<string, Type> $paramToType */
$paramToType = array_reduce(
- array_keys($matches[1]),
+ array_keys($matches[2]),
static function (array $acc, string|int $k) use ($matches) {
$acc[$matches[1][$k]] = Type::fromString($matches[2][$k]);
|
|
Infection:
src/Client/Http/RequestFactory.php#L65
Escaped Mutant for Mutator "Ternary":
@@ @@
);
if ($this->uri === null) {
- $uri = $query === '' ? '' : '?' . $query;
+ $uri = $query === '' ? '?' . $query : '';
} else {
$uriQuery = $this->uri->getQuery();
try {
|
|
Infection:
src/Client/Http/RequestFactory.php#L65
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
);
if ($this->uri === null) {
- $uri = $query === '' ? '' : '?' . $query;
+ $uri = $query === '' ? '' : '?';
} else {
$uriQuery = $this->uri->getQuery();
try {
|
|
Infection:
src/Client/Http/RequestFactory.php#L65
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
);
if ($this->uri === null) {
- $uri = $query === '' ? '' : '?' . $query;
+ $uri = $query === '' ? '' : $query;
} else {
$uriQuery = $this->uri->getQuery();
try {
|
|
Infection:
src/Client/Http/RequestFactory.php#L65
Escaped Mutant for Mutator "Concat":
@@ @@
);
if ($this->uri === null) {
- $uri = $query === '' ? '' : '?' . $query;
+ $uri = $query === '' ? '' : $query . '?';
} else {
$uriQuery = $this->uri->getQuery();
try {
|
|
Infection:
src/Client/Http/RequestFactory.php#L39
Escaped Mutant for Mutator "LogicalAnd":
@@ @@
UriFactoryInterface|null $uriFactory = null,
UriInterface|string $uri = '',
) {
- if ($uriFactory === null && $uri === '') {
+ if ($uriFactory === null || $uri === '') {
$uri = null;
} elseif (is_string($uri)) {
if ($uriFactory === null) {
|