Update vimeo/psalm requirement from 5.24.0 to 5.26.1 #344
Triggered via pull request
September 26, 2024 13:08
Status
Success
Total duration
1m 57s
Artifacts
–
continuous-integration.yml
on: pull_request
Matrix: phpunit-mysql
Matrix: quality-checks
Annotations
6 warnings
UndefinedMethod:
src/Statement.php#L92
src/Statement.php:92:47: UndefinedMethod: Method Doctrine\DBAL\Connection::canTryAgain does not exist (see https://psalm.dev/022)
|
UndefinedMethod:
src/Statement.php#L96
src/Statement.php:96:41: UndefinedMethod: Method Doctrine\DBAL\Connection::increaseAttemptCount does not exist (see https://psalm.dev/022)
|
Infection (PHP 8.3 / MySQL 8.0):
src/ConnectionTrait.php#L115
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
/**
* @internal
*/
- public function resetAttemptCount() : void
+ protected function resetAttemptCount() : void
{
$this->currentAttempts = 0;
}
|
Infection (PHP 8.3 / MySQL 8.0):
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
|
Infection (PHP 8.3 / MySQL 8.0):
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');
}
}
|
Infection (PHP 8.3 / MySQL 8.0):
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;
}
|