strtr returns non-empty-string#1963
Conversation
There was a problem hiding this comment.
tbh, I don't know why this test got more precise with this change :)
There was a problem hiding this comment.
Because preg_replace is impacted by your changes. By using selectFromArgs, conditional return type is resolved.
There was a problem hiding this comment.
results before this PR:
https://phpstan.org/r/8833f01d-4202-4163-bf72-982f9729c3c9
|
This pull request has been marked as ready for review. |
There was a problem hiding this comment.
since strtr has multiple signatures, I had to use selectFromArgs() here.
There was a problem hiding this comment.
Because preg_replace is impacted by your changes. By using selectFromArgs, conditional return type is resolved.
ondrejmirtes
left a comment
There was a problem hiding this comment.
Looking at the extension, could we replace it with stubs with conditional return types instead?
I think we could, but it would be a rather complicated conditional, which needs to cover for |
|
Thank you. |
No description provided.