Skip to content

Commit 3a12dba

Browse files
authored
[DependencyInjection] Fix YamlFileLoader return type
1 parent ba9f109 commit 3a12dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ private function parseCallable(mixed $callable, string $parameter, string $id, s
735735
*
736736
* @throws InvalidArgumentException when the given file is not a local file or when it does not exist
737737
*/
738-
protected function loadFile(string $file): array
738+
protected function loadFile(string $file): ?array
739739
{
740740
if (!class_exists(\Symfony\Component\Yaml\Parser::class)) {
741741
throw new RuntimeException('Unable to load YAML config files as the Symfony Yaml Component is not installed.');

0 commit comments

Comments
 (0)