Skip to content

[DependencyInjection] Fix YamlFileLoader return type #44056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

1ed
Copy link
Contributor

@1ed 1ed commented Nov 14, 2021

Q A
Branch? 6.0
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

This fixes the following error (as validate can return null for empty files):

Uncaught TypeError: Symfony\Component\DependencyInjection\Loader\YamlFileLoader::loadFile(): Return value must be of type array, null returned in vendor/symfony/dependency-injection/Loader/YamlFileLoader.php:760

@nicolas-grekas
Copy link
Member

Thank you @1ed.

@nicolas-grekas nicolas-grekas merged commit 89d6fcf into symfony:6.0 Nov 15, 2021
@1ed 1ed deleted the patch-16 branch November 15, 2021 09:22
@fabpot fabpot mentioned this pull request Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants