Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jul 24, 2023
1 parent d320f07 commit 93443f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Psalm/Config/FileFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,11 @@ public static function loadFromArray(

$file_path = realpath($prospective_file_path);

if (!$file_path && !$allow_missing_files) {
if (!$file_path) {
if ($allow_missing_files) {
continue;
}

throw new ConfigException(
'Could not resolve config path to ' . $prospective_file_path,
);
Expand Down

0 comments on commit 93443f2

Please sign in to comment.