From 582624a932b90310e54af3e9c40b3c6ad6d2e062 Mon Sep 17 00:00:00 2001 From: phptest2 <98947593+phptest2@users.noreply.github.com> Date: Thu, 3 Feb 2022 17:58:12 +0100 Subject: [PATCH] improving error message for Could not resolve config path $directory_path is false, so better use $prospective_directory_path in the error message. --- src/Psalm/Config/FileFilter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Psalm/Config/FileFilter.php b/src/Psalm/Config/FileFilter.php index 1443594c7a7..76f53d6be2e 100644 --- a/src/Psalm/Config/FileFilter.php +++ b/src/Psalm/Config/FileFilter.php @@ -170,8 +170,7 @@ public static function loadFromArray( } throw new ConfigException( - 'Could not resolve config path to ' . $base_dir - . DIRECTORY_SEPARATOR . $directory_path + 'Could not resolve config path to ' . $prospective_directory_path ); }