Fix build #316
continuous-integration.yml
on: pull_request
Matrix: phpunit-mysql
Matrix: quality-checks
Annotations
10 warnings
InvalidArgument:
src/Statement.php#L78
src/Statement.php:78:44: InvalidArgument: Argument 1 of Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Statement::executeWithRetry expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Statement.php#L81
src/Statement.php:81:40: InvalidArgument: Argument 1 of Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Statement::executeWithRetry expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Statement.php#L87
src/Statement.php:87:44: InvalidArgument: Argument 1 of Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Statement::executeWithRetry expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Statement.php#L90
src/Statement.php:90:40: InvalidArgument: Argument 1 of Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Statement::executeWithRetry expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
UndefinedMethod:
src/Statement.php#L111
src/Statement.php:111:47: UndefinedMethod: Method Doctrine\DBAL\Connection::canTryAgain does not exist (see https://psalm.dev/022)
|
UndefinedMethod:
src/Statement.php#L115
src/Statement.php:115:41: UndefinedMethod: Method Doctrine\DBAL\Connection::increaseAttemptCount does not exist (see https://psalm.dev/022)
|
Infection (PHP 8.1 / MySQL 8.0):
src/ConnectionTrait.php#L114
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
/**
* @internal
*/
- public function resetAttemptCount() : void
+ protected function resetAttemptCount() : void
{
$this->currentAttempts = 0;
}
|
Infection (PHP 8.1 / MySQL 8.0):
src/ConnectionTrait.php#L171
Escaped Mutant for Mutator "LogicalOr":
--- Original
+++ New
@@ @@
}
public function beginTransaction()
{
- if ($this->hasBeenClosedWithAnOpenTransaction || 0 !== $this->getTransactionNestingLevel()) {
+ if ($this->hasBeenClosedWithAnOpenTransaction && 0 !== $this->getTransactionNestingLevel()) {
return @parent::beginTransaction();
}
return $this->doWithRetry(fn(): bool => parent::beginTransaction());
|
Infection (PHP 8.1 / MySQL 8.0):
src/Statement.php#L105
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
private function executeWithRetry(callable $callable, ...$params)
{
$parentCall = \Closure::fromCallable($callable);
- $parentCall->bindTo($this, parent::class);
+
try {
attempt:
$result = $parentCall(...$params);
|
Infection (PHP 8.1 / MySQL 8.0):
src/Statement.php#L115
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (!$this->retriableConnection->canTryAgain($e, $this->sql)) {
throw $e;
}
- $this->retriableConnection->increaseAttemptCount();
+
$this->recreateStatement();
goto attempt;
}
|