Skip to content

Conversation

@mad-briller
Copy link
Contributor

@mad-briller mad-briller commented Dec 4, 2025

Closes phpstan/phpstan#13816

The issue states that stringable objects are accepted, but it turns out that this is not the case:
https://3v4l.org/07vKm#v8.4.15

@mad-briller mad-briller marked this pull request as draft December 4, 2025 16:56
@mad-briller mad-briller marked this pull request as ready for review December 4, 2025 17:14
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@mad-briller
Copy link
Contributor Author

shopware ci failure looks expected as they are calling array_keys on mixed which will result in int|string

@ondrejmirtes ondrejmirtes merged commit 4d834fd into phpstan:2.1.x Dec 6, 2025
635 of 636 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@VincentLanglet
Copy link
Contributor

I think I found two bugs with the current implementation, I opened #4618 about it @ondrejmirtes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

array_count_values returned value is not taking care of the key-type

5 participants