Skip to content

Commit 015da80

Browse files
authored
Fix YamlSymfonyFileLoader if locator uses directory besides getcwd() (#1526)
1 parent 9680835 commit 015da80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config/SDK/Configuration/Loader/YamlSymfonyFileLoader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function load(mixed $resource, ?string $type = null): mixed
3232
$this->configuration->addResource(new FileResource($path));
3333

3434
try {
35-
$content = Yaml::parseFile($resource, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
35+
$content = Yaml::parseFile($path, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE);
3636
} catch (ParseException $e) {
3737
throw new InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML: %s', $path, $e->getMessage()), 0, $e);
3838
}

0 commit comments

Comments
 (0)