Skip to content
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

No type specified for $argv #7911

Closed
dktapps opened this issue Sep 2, 2022 · 3 comments
Closed

No type specified for $argv #7911

dktapps opened this issue Sep 2, 2022 · 3 comments
Labels
Milestone

Comments

@dktapps
Copy link
Contributor

dktapps commented Sep 2, 2022

Bug report

$argv appears not to have any type associated with it by PHPStan.

When defined, it is always a linear array of strings.

Code snippet that reproduces the problem

https://phpstan.org/r/b2ae974f-30b1-44fb-bbc2-5f75e4d7a771

Expected output

Dumped type: list<string> or something similar.

Did PHPStan help you today? Did it make you happy in any way?

I found hundreds of new issues in my code when enabling checkImplicitMixed. Jury is out on how many of these are real problems, though...

@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone Sep 21, 2022
@staabm
Copy link
Contributor

staabm commented Sep 21, 2022

I think this one was fixed with phpstan: phpstan/phpstan-src#1718

(but the robot did not realize the change)

@ondrejmirtes
Copy link
Member

Thanks.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants