Skip to content
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

Added missing mb_str_split function #6219

Merged
merged 2 commits into from
Aug 1, 2021
Merged

Conversation

bitwise-operators
Copy link
Contributor

Added missing mb_str_split() function from PHP 7.4 to dictionaries

Fixes #6217

@orklah
Copy link
Collaborator

orklah commented Aug 1, 2021

Awesome!

Is there a reason why you called the second parameter "limit"? the doc seem to say "length" https://www.php.net/manual/en/function.mb-str-split.php

dictionaries/CallMap.php Show resolved Hide resolved
dictionaries/CallMap_74_delta.php Outdated Show resolved Hide resolved
@weirdan weirdan added this to the 4.9.3 milestone Aug 1, 2021
@bitwise-operators
Copy link
Contributor Author

Is there a reason why you called the second parameter "limit"? the doc seem to say "length" https://www.php.net/manual/en/function.mb-str-split.php

Oops, well spotted. I copy-pasted part of the signature from mb_split() and missed the difference in name.

@orklah
Copy link
Collaborator

orklah commented Aug 1, 2021

It didn't use to matter but now with PHP 8's named parameter, it does :). Thanks for the PR!

@weirdan weirdan merged commit 82b3564 into vimeo:master Aug 1, 2021
@weirdan
Copy link
Collaborator

weirdan commented Aug 1, 2021

Thanks!

@VincentLanglet
Copy link
Contributor

I think it can be improved #6324

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.

mb_str_split signature missing
4 participants