chore(deps): update dependency infection/infection to ^0.31.0 #1515
Annotations
10 warnings
|
Infection:
src/Client/PsrClickHouseClient.php#L225
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
public function insertPayload(Table|string $table, Format $inputFormat, StreamInterface $payload, array $columns = [], array $settings = []): void
{
- if ($payload->getSize() === 0) {
+ if ($payload->getSize() === -1) {
throw CannotInsert::noValues();
}
$formatSql = $inputFormat::toSql();
|
|
Infection:
src/Client/PsrClickHouseClient.php#L78
Escaped Mutant for Mutator "Catch_":
@@ @@
{
try {
return $this->selectWithParams($query, params: [], outputFormat: $outputFormat, settings: $settings);
- } catch (UnsupportedParamValue|UnsupportedParamType) {
+ } catch (UnsupportedParamValue) {
absurd();
}
}
|
|
Infection:
src/Client/PsrClickHouseClient.php#L67
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/PsrClickHouseAsyncClient.php#L101
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
{
$request = $this->requestFactory->prepareSqlRequest($sql, new RequestSettings($this->defaultSettings, $settings), new RequestOptions($params));
$id = uniqid('', true);
- $this->sqlLogger?->startQuery($id, $sql);
+
return Create::promiseFor($this->asyncClient->sendAsyncRequest($request))->then(function (ResponseInterface $response) use ($id, $processResponse) {
$this->sqlLogger?->stopQuery($id);
if ($response->getStatusCode() !== 200) {
|
|
Infection:
src/Client/Http/RequestFactory.php#L98
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
}
}
/** @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[2]), static function (array $acc, string|int $k) use ($matches) {
$acc[$matches[1][$k]] = Type::fromString($matches[2][$k]);
return $acc;
}, []);
|
|
Infection:
src/Client/Http/RequestFactory.php#L65
Escaped Mutant for Mutator "Ternary":
@@ @@
{
$query = http_build_query($requestSettings->settings + $additionalOptions, '', '&', PHP_QUERY_RFC3986);
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":
@@ @@
{
$query = http_build_query($requestSettings->settings + $additionalOptions, '', '&', PHP_QUERY_RFC3986);
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":
@@ @@
{
$query = http_build_query($requestSettings->settings + $additionalOptions, '', '&', PHP_QUERY_RFC3986);
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":
@@ @@
{
$query = http_build_query($requestSettings->settings + $additionalOptions, '', '&', PHP_QUERY_RFC3986);
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":
@@ @@
/** @throws InvalidArgumentException */
public function __construct(private ParamValueConverterRegistry $paramValueConverterRegistry, private RequestFactoryInterface $requestFactory, private StreamFactoryInterface $streamFactory, UriFactoryInterface|null $uriFactory = null, UriInterface|string $uri = '')
{
- if ($uriFactory === null && $uri === '') {
+ if ($uriFactory === null || $uri === '') {
$uri = null;
} elseif (is_string($uri)) {
if ($uriFactory === null) {
|