fix: Handle multiline targets with tabs #111
tests.yaml
on: pull_request
Matrix: debug-test
Matrix: infection
Matrix: tests
Tests Status
2s
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))));
}
}
|