Repository navigation
Require string-castable values in strtr() replacement pairs - #7124
kamil-tekiela wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
There are already pre-existing rules for similar cases. I would need to check why its implemented in rules instead of signature files. I can't remember from the top of my head. In case we can/want keep it in the signature files it needs to be in a bleeding edge file, because narrowing parameter types is a BC break |
But the type stringAndStringable is also made for this case.
I'm not sure about this point given the fact even when the type was introduce/use it wasn't behing bleeding edge. This feels more like a fix to me... |
|
just checked back with ondrej. it needs to be bleeding edge
|
Closes phpstan/phpstan#15800
🤖 Generated with Claude Code