Skip to content

Commit

Permalink
Fix another POSIX only detection of absolute paths
Browse files Browse the repository at this point in the history
It looks like this was missed in vimeo#10441
  • Loading branch information
theodorejb committed Dec 6, 2023
1 parent c620f6e commit 3e91899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Config/FileFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public static function loadFromArray(
foreach ($config['file'] as $file) {
$file_path = (string) ($file['name'] ?? '');

if ($file_path[0] === '/' && DIRECTORY_SEPARATOR === '/') {
if (Path::isAbsolute($file_path)) {
/** @var non-empty-string */
$prospective_file_path = $file_path;
} else {
Expand Down

0 comments on commit 3e91899

Please sign in to comment.