Skip to content

$expression->getType() returns database type but not an abstract type #1184

$expression->getType() returns database type but not an abstract type

$expression->getType() returns database type but not an abstract type #1184

Triggered via pull request October 10, 2023 10:43
Status Success
Total duration 9m 18s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

mutation.yml

on: pull_request
Matrix: mutation
Fit to window
Zoom out
Zoom in

Annotations

4 warnings
PHP 8-ubuntu-latest: src/ArrayParser.php#L35
Escaped Mutant for Mutator "Increment": --- Original +++ New @@ @@ private function parseArray(string $value, int &$i = 0) : array { if ($value[++$i] === '}') { - ++$i; + --$i; return []; } for ($result = [];; ++$i) {
PHP 8-ubuntu-latest: src/Connection.php#L32
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-ubuntu-latest: src/DDLQueryBuilder.php#L56
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $type = preg_replace('/\\s+DEFAULT\\s+(["\']?\\w*["\']?)/i', '', $type); $multiAlterStatement[] = "ALTER COLUMN {$columnName} SET DEFAULT {$matches[1]}"; } - $type = preg_replace('/\\s+NOT\\s+NULL/i', '', $type, -1, $count); + $type = preg_replace('/\\s+NOT\\s+NULL/i', '', $type, -2, $count); if ($count) { $multiAlterStatement[] = "ALTER COLUMN {$columnName} SET NOT NULL"; } else {
PHP 8.1-ubuntu-latest: src/ArrayParser.php#L35
Escaped Mutant for Mutator "Increment": --- Original +++ New @@ @@ private function parseArray(string $value, int &$i = 0) : array { if ($value[++$i] === '}') { - ++$i; + --$i; return []; } for ($result = [];; ++$i) {