Skip to content

composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 5.5.0 to 5.5.2 #1089

composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 5.5.0 to 5.5.2

composer(deps-dev): Bump ergebnis/php-cs-fixer-config from 5.5.0 to 5.5.2 #1089

Triggered via pull request April 28, 2023 08:56
Status Failure
Total duration 1m 13s
Artifacts

integrate.yaml

on: pull_request
Matrix: Code Coverage
Matrix: Coding Standards
Matrix: Dependency Analysis
Matrix: Mutation Tests
Matrix: Refactoring
Matrix: Security Analysis
Matrix: Static Code Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 9 warnings
Dependency Analysis (8.0, locked)
Process completed with exit code 4.
Mutation Tests (8.0, locked): src/Printer.php#L47
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ public function print(string $json, string $indent = ' ', string $newLine = \PHP_EOL) : string { try { - \json_decode($json, false, 512, \JSON_THROW_ON_ERROR); + \json_decode($json, true, 512, \JSON_THROW_ON_ERROR); } catch (\JsonException) { throw new \InvalidArgumentException(\sprintf('"%s" is not valid JSON.', $json)); }
Mutation Tests (8.0, locked): src/Printer.php#L48
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public function print(string $json, string $indent = ' ', string $newLine = \PHP_EOL) : string { try { - \json_decode($json, false, 512, \JSON_THROW_ON_ERROR); + \json_decode($json, false, 511, \JSON_THROW_ON_ERROR); } catch (\JsonException) { throw new \InvalidArgumentException(\sprintf('"%s" is not valid JSON.', $json)); }
Mutation Tests (8.0, locked): src/Printer.php#L48
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public function print(string $json, string $indent = ' ', string $newLine = \PHP_EOL) : string { try { - \json_decode($json, false, 512, \JSON_THROW_ON_ERROR); + \json_decode($json, false, 513, \JSON_THROW_ON_ERROR); } catch (\JsonException) { throw new \InvalidArgumentException(\sprintf('"%s" is not valid JSON.', $json)); }
Mutation Tests (8.0, locked): src/Printer.php#L65
Escaped Mutant for Mutator "PregMatchRemoveCaret": --- Original +++ New @@ @@ if (1 !== \preg_match('/^( +|\\t+)$/', $indent)) { throw new \InvalidArgumentException(\sprintf('"%s" is not a valid indent.', $indent)); } - if (1 !== \preg_match('/^(?>\\r\\n|\\n|\\r)$/', $newLine)) { + if (1 !== \preg_match('/(?>\\r\\n|\\n|\\r)$/', $newLine)) { throw new \InvalidArgumentException(\sprintf('"%s" is not a valid new-line character sequence.', $newLine)); } $printed = '';
Mutation Tests (8.0, locked): src/Printer.php#L65
Escaped Mutant for Mutator "PregMatchRemoveDollar": --- Original +++ New @@ @@ if (1 !== \preg_match('/^( +|\\t+)$/', $indent)) { throw new \InvalidArgumentException(\sprintf('"%s" is not a valid indent.', $indent)); } - if (1 !== \preg_match('/^(?>\\r\\n|\\n|\\r)$/', $newLine)) { + if (1 !== \preg_match('/^(?>\\r\\n|\\n|\\r)/', $newLine)) { throw new \InvalidArgumentException(\sprintf('"%s" is not a valid new-line character sequence.', $newLine)); } $printed = '';
Mutation Tests (8.0, locked): src/Printer.php#L74
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ } $printed = ''; $indentLevel = 0; - $length = \mb_strlen($json); + $length = strlen($json); $withinStringLiteral = false; $stringLiteral = ''; $noEscape = true;
Mutation Tests (8.0, locked): src/Printer.php#L79
Escaped Mutant for Mutator "LessThan": --- Original +++ New @@ @@ $withinStringLiteral = false; $stringLiteral = ''; $noEscape = true; - for ($i = 0; $i < $length; ++$i) { + for ($i = 0; $i <= $length; ++$i) { /** * Grab the next character in the string. */
Mutation Tests (8.0, locked): src/Printer.php#L97
Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ */ if ($withinStringLiteral) { $stringLiteral .= $character; - $noEscape = '\\' === $character ? !$noEscape : true; + $noEscape = '\\' === $character ? $noEscape : true; continue; } /**
Mutation Tests (8.0, locked): src/Printer.php#L155
Escaped Mutant for Mutator "MBString": --- Original +++ New @@ @@ if ('}' === $character || ']' === $character) { --$indentLevel; $trimmed = \rtrim($printed); - $previousNonWhitespaceCharacter = \mb_substr($trimmed, -1); + $previousNonWhitespaceCharacter = substr($trimmed, -1); /** * Collapse empty {} and []. */