Skip to content

Merge pull request #90 from facile-it/fix-build #319

Merge pull request #90 from facile-it/fix-build

Merge pull request #90 from facile-it/fix-build #319

Triggered via push May 10, 2024 21:23
Status Success
Total duration 2m 0s
Artifacts
Matrix: phpunit-mysql
Matrix: quality-checks
Fit to window
Zoom out
Zoom in

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; }