Skip to content

Refactoring formatter #689

Refactoring formatter

Refactoring formatter #689

Triggered via pull request March 5, 2026 15:05
Status Failure
Total duration 1m 27s
Artifacts

mutation-tests.yml

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

Annotations

1 error and 10 warnings
Mutation tests with PHP 8.2
Process completed with exit code 1.
Mutation tests with PHP 8.2: src/Utils/CLI.php#L217
Escaped Mutant for Mutator "FalseValue": @@ @@ } if (isset($params['q'])) { - $lexer = new Lexer($params['q'], false); + $lexer = new Lexer($params['q'], true); $parser = new Parser($lexer->list); $errors = Error::get([$lexer, $parser]); if ($errors === []) {
Mutation tests with PHP 8.2: src/Utils/CLI.php#L201
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } if (isset($params['c'])) { - Context::load($params['c']); + } if (! isset($params['q'])) {
Mutation tests with PHP 8.2: src/Utils/CLI.php#L171
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ public function parseLint(): array|false { $longopts = [ - 'help', 'query:', 'context:', 'ansi',
Mutation tests with PHP 8.2: src/Utils/CLI.php#L169
Escaped Mutant for Mutator "PublicVisibility": @@ @@ } /** @return string[]|false[]|false */ - public function parseLint(): array|false + protected function parseLint(): array|false { $longopts = [ 'help',
Mutation tests with PHP 8.2: src/Utils/CLI.php#L160
Escaped Mutant for Mutator "PublicVisibility": @@ @@ return 1; } - public function usageLint(): void + protected function usageLint(): void { $command = 'sql-parser --lint';
Mutation tests with PHP 8.2: src/Utils/CLI.php#L92
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ public function parseHighlight(): array|false { $longopts = [ - 'help', 'query:', 'format:', 'ansi',
Mutation tests with PHP 8.2: src/Utils/CLI.php#L90
Escaped Mutant for Mutator "PublicVisibility": @@ @@ } /** @return string[]|false[]|false */ - public function parseHighlight(): array|false + protected function parseHighlight(): array|false { $longopts = [ 'help',
Mutation tests with PHP 8.2: src/Utils/CLI.php#L71
Escaped Mutant for Mutator "PublicVisibility": @@ @@ } } - public function usageHighlight(): void + protected function usageHighlight(): void { $command = 'sql-parser --highlight';
Mutation tests with PHP 8.2: src/Utils/CLI.php#L59
Escaped Mutant for Mutator "PublicVisibility": @@ @@ * @param string[]|false[] $params * @param string[] $longopts */ - public function mergeLongOpts(array &$params, array &$longopts): void + protected function mergeLongOpts(array &$params, array &$longopts): void { foreach ($longopts as $value) { $value = rtrim($value, ':');
Mutation tests with PHP 8.2: src/Utils/CLI.php#L28
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { public function __construct() { - Context::load(); + } public function run(): int