-
Notifications
You must be signed in to change notification settings - Fork 8k
Fix getPartsIterator stub #21003
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
Fix getPartsIterator stub #21003
Conversation
a7c248c to
deb99ce
Compare
|
Yes the actual method takes a zend_long so in the stub it should be an int argument indeed. @kocsismate wdyt ? |
|
Same applies here, this is LSP breaking, so I don't think this should target 8.4, but |
But in this case, if someone was extending this method, wouldn't already he have an issue with the default value ? |
|
Not if they don't use strict_types. |
deb99ce to
31a08f3
Compare
|
@iluuu1994 I updated the branch/PR to target master. |
|
Thanks for the fix! |
Hi,
I'm not familiar with php codebase but I feel like there is an error in definition of getPartsIterator
php-src/ext/intl/breakiterator/breakiterator_iterators.stub.php
Line 9 in 65b4073
Also, I dunno if I have to update this code too
php-src/ext/intl/breakiterator/breakiterator_arginfo.h
Line 41 in 65b4073
See the inconsistency in the doc
https://www.php.net/manual/en/class.intlpartsiterator.php
https://www.php.net/manual/en/intlbreakiterator.getpartsiterator.php