Skip to content

Merge branch '5.10.x' #609

Merge branch '5.10.x'

Merge branch '5.10.x' #609

Triggered via push August 25, 2024 18:18
Status Success
Total duration 31m 19s
Artifacts
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

12 warnings
Mutation tests with PHP 8.2
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
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) . ' ';