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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Array (array<'44'|'45', Mapping>) does not accept key 45. #6117

Closed
trailsnail opened this issue Nov 30, 2021 · 3 comments
Closed

Error: Array (array<'44'|'45', Mapping>) does not accept key 45. #6117

trailsnail opened this issue Nov 30, 2021 · 3 comments

Comments

@trailsnail
Copy link

trailsnail commented Nov 30, 2021

Bug report

Code snippet that reproduces the problem

Wondering why my string keys are not accepted 馃 As string defined keys seems to be handled as integers ...
https://phpstan.org/r/2750e8ab-f355-41ce-b0b9-f6c1287bd611

Expected output

This should be no error.

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

PHPStan helped me to think much more about my code. I love typehinting and the instant help from PHPStan in my IDE - thanks for this great tool!

@ZebulanStanphill
Copy link
Contributor

I think this is related to (and may be fixed by) phpstan/phpstan-src#769.

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@5d17b84

@github-actions
Copy link

github-actions bot commented Mar 4, 2022

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 Mar 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants