You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phpstan reports incorrect error:
Missing parameter $varname (string) in call to function getenv. argument.missing
Unknown parameter $var in call to function getenv. argument.unknown
Bug report
phpstan expects named argument 'varname' for function getenv. This is incorrect and should be named argument 'name'
php docs:
getenv(?string $name = null, bool $local_only = false): string|array|false
phpstan reports incorrect error:
Missing parameter $varname (string) in call to function getenv. argument.missing
Unknown parameter $var in call to function getenv. argument.unknown
Code snippet that reproduces the problem
https://phpstan.org/r/badcfad5-9a39-48e1-8098-87849b5c8c02
Expected output
phpstan should not report an error when using named argument 'name' in function getenv()
Did PHPStan help you today? Did it make you happy in any way?
love phpstan!
The text was updated successfully, but these errors were encountered: