Continuous Integration #310
continuous-integration.yml
on: schedule
Matrix: phpunit-mysql
Matrix: quality-checks
Annotations
4 warnings
Infection (PHP 8.1 / MySQL 8.0):
src/ConnectionTrait.php#L113
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#L174
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(function () : bool {
|
Infection (PHP 8.1 / MySQL 8.0):
src/Statement.php#L104
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#L114
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (!$this->retriableConnection->canTryAgain($e, $this->sql)) {
throw $e;
}
- $this->retriableConnection->increaseAttemptCount();
+
$this->recreateStatement();
goto attempt;
}
|