-
Notifications
You must be signed in to change notification settings - Fork 53
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
Symfony's Configurator functions env()
and param()
not found
#292
Comments
Are these functions supposed to be globally available? |
Well, at least in Symfony's config files, see e.g. https://symfony.com/doc/current/configuration.html#configuration-based-on-environment-variables 'url' => env('DATABASE_URL')->resolve(), |
Then I believe the easiest workaround is to add that file as a stub in <stubs>
<file name="vendor/symfony/....">
</stubs> |
Thanks - works - I added it to README, since (sooner or later) most Symfony users will need it: #297 |
ThomasLandauer
added a commit
to ThomasLandauer/psalm-plugin-symfony
that referenced
this issue
Dec 21, 2022
Info is taken from psalm#292 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting:
even though I have this in the config files:
The file from Symfony is looking like this:
There was a similar issue in PHPStan, and the answer was that this doesn't comply to PSR-4: phpstan/phpstan#5189 (comment)
Is there a solution or a workaround?
The text was updated successfully, but these errors were encountered: