feat: add @throws
#1218
Annotations
3 warnings
src/Client/PsrClickHouseClient.php#L85
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
if ($values === []) {
throw CannotInsert::noValues();
}
- if ($columns === null) {
+ if ($columns !== null) {
$firstRow = $values[array_key_first($values)];
$columns = array_keys($firstRow);
if (is_int($columns[0])) {
|
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
{
|
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
{
|
The logs for this run have expired and are no longer available.
Loading