Skip to content

fix: Handle multiline targets with tabs #111

fix: Handle multiline targets with tabs

fix: Handle multiline targets with tabs #111

Triggered via pull request October 13, 2023 23:39
Status Failure
Total duration 1m 2s
Artifacts

tests.yaml

on: pull_request
Matrix: debug-test
Matrix: infection
Matrix: tests
Tests Status
2s
Tests Status
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
Infection with PHP 8.2
Process completed with exit code 2.
Tests Status
Process completed with exit code 1.
Infection with PHP 8.2: src/Parser.php#L161
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $dependencies = mb_substr($dependencies, 0, $semicolonPosition); $ignoreNextLinesOfMultiline = true; } - $charactersToTrim = $multiline ? '\\' . "\t" : "\t"; + $charactersToTrim = $multiline ? "\t" . '\\' : "\t"; return array_values(array_filter(array_map(static fn(string $dependency) => ltrim($dependency, $charactersToTrim), explode(' ', $dependencies)))); } }