We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04ba935 commit 138c7b8Copy full SHA for 138c7b8
1 file changed
src/Psalm/Internal/Cli/Psalm.php
@@ -1067,7 +1067,8 @@ private static function initBaseline(
1067
if ($paths_to_check !== null) {
1068
$filtered_issue_baseline = [];
1069
foreach ($paths_to_check as $path_to_check) {
1070
- $path_to_check = substr($path_to_check, strlen($config->base_dir));
+ // +1 to remove the initial slash from $path_to_check
1071
+ $path_to_check = substr($path_to_check, strlen($config->base_dir) + 1);
1072
if (isset($issue_baseline[$path_to_check])) {
1073
$filtered_issue_baseline[$path_to_check] = $issue_baseline[$path_to_check];
1074
}
0 commit comments