CI #38
Annotations
4 warnings
Infection PHP:
src/Dbal/DibiAdapter.php#L21
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function query(string $sql): array
{
$result = $this->connection->nativeQuery($sql);
- $result->setRowClass(null);
+
return $result->fetchAll();
}
public function exec(string $sql): int
|
Infection PHP:
src/Dbal/NextrasAdapter.php#L23
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
public function __construct(Connection $connection)
{
$this->connection = $connection;
- $this->connection->connect();
+
if (method_exists($connection->getDriver(), 'convertToSql')) {
$this->version = 1;
} elseif (method_exists($connection->getDriver(), 'convertBoolToSql')) {
|
Infection PHP:
src/Dbal/NextrasAdapter.php#L30
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
} elseif (method_exists($connection->getDriver(), 'convertBoolToSql')) {
$this->version = 2;
} else {
- $this->version = 5;
+ $this->version = 6;
}
}
public function query(string $sql): array
|
Infection PHP:
src/Dbal/NextrasAdapter.php#L51
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
@@ @@
}
public function escapeString(string $value): string
{
- if ($this->version >= 2) {
+ if ($this->version > 2) {
return $this->connection->getDriver()->convertStringToSql($value);
}
return $this->connection->getDriver()->convertToSql($value, IDriver::TYPE_STRING);
|
Loading