Merge branch '5.11.x' #633
Annotations
12 warnings
Mutation tests with PHP 8.2
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Mutation tests with PHP 8.2
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Mutation tests with PHP 8.2:
src/Components/AlterOperation.php#L70
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
if (isset($this->field) && $this->field !== '') {
$ret .= $this->field . ' ';
}
- $ret .= $afterFieldsOptions . TokensList::buildFromArray($this->unknown);
+ $ret .= TokensList::buildFromArray($this->unknown) . $afterFieldsOptions;
if (isset($this->partitions)) {
$ret .= PartitionDefinitions::buildAll($this->partitions);
}
|
Mutation tests with PHP 8.2:
src/Components/CaseExpression.php#L67
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
$ret .= $this->value . ' ';
$valuesCount = count($this->compareValues);
$resultsCount = count($this->results);
- for ($i = 0; $i < $valuesCount && $i < $resultsCount; ++$i) {
+ for ($i = 0; $i <= $valuesCount && $i < $resultsCount; ++$i) {
$ret .= 'WHEN ' . $this->compareValues[$i] . ' ';
$ret .= 'THEN ' . $this->results[$i] . ' ';
}
|
Mutation tests with PHP 8.2:
src/Components/CaseExpression.php#L67
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
$ret .= $this->value . ' ';
$valuesCount = count($this->compareValues);
$resultsCount = count($this->results);
- for ($i = 0; $i < $valuesCount && $i < $resultsCount; ++$i) {
+ for ($i = 0; $i < $valuesCount && $i <= $resultsCount; ++$i) {
$ret .= 'WHEN ' . $this->compareValues[$i] . ' ';
$ret .= 'THEN ' . $this->results[$i] . ' ';
}
|
Mutation tests with PHP 8.2:
src/Components/CaseExpression.php#L67
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$ret .= $this->value . ' ';
$valuesCount = count($this->compareValues);
$resultsCount = count($this->results);
- for ($i = 0; $i < $valuesCount && $i < $resultsCount; ++$i) {
+ for ($i = 0; $i < $valuesCount || $i < $resultsCount; ++$i) {
$ret .= 'WHEN ' . $this->compareValues[$i] . ' ';
$ret .= 'THEN ' . $this->results[$i] . ' ';
}
|
Mutation tests with PHP 8.2:
src/Components/CaseExpression.php#L75
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
// Syntax type 1
$valuesCount = count($this->conditions);
$resultsCount = count($this->results);
- for ($i = 0; $i < $valuesCount && $i < $resultsCount; ++$i) {
+ for ($i = 0; $i <= $valuesCount && $i < $resultsCount; ++$i) {
$ret .= 'WHEN ' . Conditions::buildAll($this->conditions[$i]) . ' ';
$ret .= 'THEN ' . $this->results[$i] . ' ';
}
|
Mutation tests with PHP 8.2:
src/Components/CaseExpression.php#L75
Escaped Mutant for Mutator "LessThan":
--- Original
+++ New
@@ @@
// Syntax type 1
$valuesCount = count($this->conditions);
$resultsCount = count($this->results);
- for ($i = 0; $i < $valuesCount && $i < $resultsCount; ++$i) {
+ for ($i = 0; $i < $valuesCount && $i <= $resultsCount; ++$i) {
$ret .= 'WHEN ' . Conditions::buildAll($this->conditions[$i]) . ' ';
$ret .= 'THEN ' . $this->results[$i] . ' ';
}
|
Mutation tests with PHP 8.2:
src/Components/CaseExpression.php#L75
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
// Syntax type 1
$valuesCount = count($this->conditions);
$resultsCount = count($this->results);
- for ($i = 0; $i < $valuesCount && $i < $resultsCount; ++$i) {
+ for ($i = 0; $i < $valuesCount || $i < $resultsCount; ++$i) {
$ret .= 'WHEN ' . Conditions::buildAll($this->conditions[$i]) . ' ';
$ret .= 'THEN ' . $this->results[$i] . ' ';
}
|
Mutation tests with PHP 8.2:
src/Components/Condition.php#L37
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
/** @param string $expr the condition or the operator */
public function __construct(string|null $expr = null)
{
- $this->expr = trim((string) $expr);
+ $this->expr = (string) $expr;
}
public function build() : string
{
|
Mutation tests with PHP 8.2:
src/Components/CreateDefinition.php#L67
Escaped Mutant for Mutator "InstanceOf_":
--- Original
+++ New
@@ @@
$this->options = $options;
if ($type instanceof DataType) {
$this->type = $type;
- } elseif ($type instanceof Key) {
+ } elseif (true) {
$this->key = $type;
$this->isConstraint = $isConstraint;
$this->references = $references;
|
Mutation tests with PHP 8.2:
src/Components/CreateDefinition.php#L79
Escaped Mutant for Mutator "Assignment":
--- Original
+++ New
@@ @@
{
$tmp = '';
if ($this->isConstraint) {
- $tmp .= 'CONSTRAINT ';
+ $tmp = 'CONSTRAINT ';
}
if (isset($this->name) && $this->name !== '') {
$tmp .= Context::escape($this->name) . ' ';
|