Update psalm/plugin-phpunit requirement from 0.18.4 to 0.19.0 #346
Annotations
4 warnings
Run mutation testing with Infection:
src/ConnectionTrait.php#L115
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
/**
* @internal
*/
- public function resetAttemptCount() : void
+ protected function resetAttemptCount() : void
{
$this->currentAttempts = 0;
}
|
Run mutation testing with Infection:
src/Detector/MySQLGoneAwayDetector.php#L43
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
}
private function isUpdateQuery(?string $sql) : bool
{
- return !preg_match('/^[\\s\\n\\r\\t(]*(select|show|describe)[\\s\\n\\r\\t(]+/i', (string) $sql);
+ return !preg_match('/^[\\s\\n\\r\\t(]*(select|show|describe)[\\s\\n\\r\\t(]+/i', $sql);
}
/**
* @see \Doctrine\DBAL\Platforms\AbstractPlatform::createSavePoint
|
Run mutation testing with Infection:
src/Detector/MySQLGoneAwayDetector.php#L51
Escaped Mutant for Mutator "CastString":
--- Original
+++ New
@@ @@
*/
private function isSavepoint(?string $sql) : bool
{
- return str_starts_with(trim((string) $sql), 'SAVEPOINT');
+ return str_starts_with(trim($sql), 'SAVEPOINT');
}
}
|
Run mutation testing with Infection:
src/Statement.php#L96
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (!$this->retriableConnection->canTryAgain($e, $this->sql)) {
throw $e;
}
- $this->retriableConnection->increaseAttemptCount();
+
$this->recreateStatement();
goto attempt;
}
|
Loading