Skip to content

Commit 7df4ce2

Browse files
Fix missing absolute path resolving in ParamsLoader (#6828)
1 parent 69b7545 commit 7df4ce2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Codeception/Lib/ParamsLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ public static function load(array|string $paramStorage): array
5151
foreach ($loaderMappings as $method => $pattern) {
5252
if (preg_match($pattern, $paramStorage)) {
5353
try {
54-
return self::$method($paramStorage);
54+
return self::$method($paramsFile);
5555
} catch (Exception $e) {
56-
throw new ConfigurationException("Failed loading params from {$paramStorage}\n" . $e->getMessage());
56+
throw new ConfigurationException("Failed loading params from {$paramsFile}\n" . $e->getMessage());
5757
}
5858
}
5959
}
6060

61-
throw new ConfigurationException("Params can't be loaded from `{$paramStorage}`.");
61+
throw new ConfigurationException("Params can't be loaded from `{$paramFile}`.");
6262
}
6363

6464
/**

0 commit comments

Comments
 (0)