Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up`count` after `explode` should make keys certain #3122
Labels
Comments
|
The issue is rather that you'd want a general array ( I suggest this alternative for now: https://phpstan.org/r/f0c0dcf5-8001-461b-9f38-f3d189936fce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
explodewill return a list of strings, so i'd expect that if i callcounton that list the key information should be more clear to phpstan.Code snippet that reproduces the problem
https://phpstan.org/r/2611be47-2295-4042-8a79-b6ff205162b9
Expected output
I'd expect there to be no issue for phpstan.