-
Notifications
You must be signed in to change notification settings - Fork 545
Improve StrSplit returnType #3999
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fff96fc to
8764aad
Compare
|
If it's ok, I opened #4000 first |
c4c4d18 to
14649b5
Compare
|
This pull request has been marked as ready for review. |
| foreach ($constantStrings as $constantString) { | ||
| $value = $constantString->getValue(); | ||
|
|
||
| if ($encoding === null && $value === '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic exists to avoid the same issue than phpstan/phpstan#13129
ondrejmirtes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one could also be only for 2.1.x.
12956d2 to
0e64b28
Compare
2aeca20 to
80ab977
Compare
|
@ondrejmirtes The HasPropertyTypeTest::testIsSuperTypeOf with data set #4 seems random, So I don't think, it's related to the PR ; this is now ready. |
|
Thank you! |
Hi @herndlm
I saw you worked multiple times on this extension with
str_split/mb_str_splitstring arg compound types + default return type formb_str_split#1496str_splitreturns an empty array since PHP 8.2 #1544