mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 16:59:45 +01:00
Merge branch '5.21.x' into 5.x
This commit is contained in:
commit
00822074fe
@ -1067,7 +1067,8 @@ final class Psalm
|
||||
if ($paths_to_check !== null) {
|
||||
$filtered_issue_baseline = [];
|
||||
foreach ($paths_to_check as $path_to_check) {
|
||||
$path_to_check = substr($path_to_check, strlen($config->base_dir));
|
||||
// +1 to remove the initial slash from $path_to_check
|
||||
$path_to_check = substr($path_to_check, strlen($config->base_dir) + 1);
|
||||
if (isset($issue_baseline[$path_to_check])) {
|
||||
$filtered_issue_baseline[$path_to_check] = $issue_baseline[$path_to_check];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user