Skip to content

chore(deps): update phpstan packages to v2 (major) #1419

chore(deps): update phpstan packages to v2 (major)

chore(deps): update phpstan packages to v2 (major) #1419

Triggered via pull request November 11, 2024 15:53
Status Success
Total duration 1m 1s
Artifacts

infection.yml

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

Annotations

6 warnings
Infection: src/Client/Http/RequestFactory.php#L87
Escaped Mutant for Mutator "DecrementInteger": @@ @@ } } /** @var array<string, Type> $paramToType */ - $paramToType = array_reduce(array_keys($matches[1]), static function (array $acc, string|int $k) use ($matches) { + $paramToType = array_reduce(array_keys($matches[0]), static function (array $acc, string|int $k) use ($matches) { $acc[$matches[1][$k]] = Type::fromString($matches[2][$k]); return $acc; }, []);
Infection: src/Client/PsrClickHouseClient.php#L62
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } public function executeQueryWithParams(string $query, array $params, array $settings = []): void { - $this->executeRequest($this->sqlFactory->createWithParameters($query, $params), params: $params, settings: $settings); + } public function select(string $query, Format $outputFormat, array $settings = []): Output {
Infection: src/Client/PsrClickHouseClient.php#L73
Escaped Mutant for Mutator "Catch_": @@ @@ { try { return $this->selectWithParams($query, params: [], outputFormat: $outputFormat, settings: $settings); - } catch (UnsupportedParamValue|UnsupportedParamType) { + } catch (UnsupportedParamValue) { absurd(); } }
Infection: src/Exception/ServerError.php#L20
Escaped Mutant for Mutator "PregMatchRemoveCaret": @@ @@ public static function fromResponse(ResponseInterface $response): self { $bodyContent = $response->getBody()->__toString(); - return new self($bodyContent, code: preg_match('~^Code: (\d+). DB::Exception:~', $bodyContent, $matches) === 1 ? (int) $matches[1] : 0); + return new self($bodyContent, code: preg_match('~Code: (\d+). DB::Exception:~', $bodyContent, $matches) === 1 ? (int) $matches[1] : 0); } }
Infection: src/Exception/ServerError.php#L20
Escaped Mutant for Mutator "IncrementInteger": @@ @@ public static function fromResponse(ResponseInterface $response): self { $bodyContent = $response->getBody()->__toString(); - return new self($bodyContent, code: preg_match('~^Code: (\d+). DB::Exception:~', $bodyContent, $matches) === 1 ? (int) $matches[1] : 0); + return new self($bodyContent, code: preg_match('~^Code: (\d+). DB::Exception:~', $bodyContent, $matches) === 1 ? (int) $matches[1] : 1); } }
Infection: src/Sql/ValueFormatter.php#L103
Escaped Mutant for Mutator "UnwrapArrayMap": @@ @@ $firstValue = $value[array_key_first($value)]; $mapper = is_array($firstValue) ? function ($value): string { assert(is_array($value)); - return sprintf('(%s)', implode(',', array_map(fn($val) => $this->format($val), $value))); + return sprintf('(%s)', implode(',', $value)); } : fn($value): string => $value === null ? 'NULL' : $this->format($value); return implode(',', array_map($mapper, $value)); }