-
Notifications
You must be signed in to change notification settings - Fork 668
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
Still having problems with $_ENV #8662
Labels
Comments
I found these snippets: https://psalm.dev/r/f48b8a52dc<?php
class EnvVarUtil
{
public static function get(string $name, string $default = ''): string
{
return getenv($name) ?: (string) ($_ENV[$name] ?? $default);
}
}
|
The type of psalm/src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/VariableFetchAnalyzer.php Lines 674 to 707 in d0be59e
Even though most entries in the |
Thanks @weirdan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had already opened an issue about this: #3564 (comment)
But now, same code has a new error: https://psalm.dev/r/f48b8a52dc
The text was updated successfully, but these errors were encountered: