Update rector/rector requirement from ^1.0 to ^2.0 #1493
Annotations
8 warnings
PHP 8.3-ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
PHP 8.3-ubuntu-latest:
src/Connection.php#L51
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$command->setSql($sql);
}
if ($this->logger !== null) {
- $command->setLogger($this->logger);
+
}
if ($this->profiler !== null) {
$command->setProfiler($this->profiler);
|
PHP 8.3-ubuntu-latest:
src/SqlParser.php#L25
Escaped Mutant for Mutator "Increment":
--- Original
+++ New
@@ @@
match ($this->sql[$pos]) {
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'", '`' => $this->skipQuotedWithEscape($this->sql[$pos]),
- '-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
+ '-' => $this->sql[$this->position] === '-' ? --$this->position && $this->skipToAfterChar("\n") : null,
'/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
default => null,
};
|
PHP 8.3-ubuntu-latest:
src/SqlParser.php#L25
Escaped Mutant for Mutator "LogicalAndNegation":
--- Original
+++ New
@@ @@
match ($this->sql[$pos]) {
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'", '`' => $this->skipQuotedWithEscape($this->sql[$pos]),
- '-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
+ '-' => $this->sql[$this->position] === '-' ? !(++$this->position && $this->skipToAfterChar("\n")) : null,
'/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
default => null,
};
|
PHP 8.3-ubuntu-latest:
src/SqlParser.php#L25
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
match ($this->sql[$pos]) {
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'", '`' => $this->skipQuotedWithEscape($this->sql[$pos]),
- '-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
+ '-' => $this->sql[$this->position] === '-' ? ++$this->position && !$this->skipToAfterChar("\n") : null,
'/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
default => null,
};
|
PHP 8.3-ubuntu-latest:
src/SqlParser.php#L28
Escaped Mutant for Mutator "Increment":
--- Original
+++ New
@@ @@
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'", '`' => $this->skipQuotedWithEscape($this->sql[$pos]),
'-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
- '/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
+ '/' => $this->sql[$this->position] === '*' ? --$this->position && $this->skipToAfterString('*/') : null,
default => null,
};
if ($result !== null) {
|
PHP 8.3-ubuntu-latest:
src/SqlParser.php#L28
Escaped Mutant for Mutator "LogicalAndNegation":
--- Original
+++ New
@@ @@
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'", '`' => $this->skipQuotedWithEscape($this->sql[$pos]),
'-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
- '/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
+ '/' => $this->sql[$this->position] === '*' ? !(++$this->position && $this->skipToAfterString('*/')) : null,
default => null,
};
if ($result !== null) {
|
PHP 8.3-ubuntu-latest:
src/SqlParser.php#L28
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
':' => ($word = $this->parseWord()) === '' ? $this->skipChars(':') : ($result = ':' . $word),
'"', "'", '`' => $this->skipQuotedWithEscape($this->sql[$pos]),
'-' => $this->sql[$this->position] === '-' ? ++$this->position && $this->skipToAfterChar("\n") : null,
- '/' => $this->sql[$this->position] === '*' ? ++$this->position && $this->skipToAfterString('*/') : null,
+ '/' => $this->sql[$this->position] === '*' ? ++$this->position && !$this->skipToAfterString('*/') : null,
default => null,
};
if ($result !== null) {
|