-
-
Notifications
You must be signed in to change notification settings - Fork 142
Fix the name of arguments for PHP 8 #287
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
src/Php70/bootstrap.php
Outdated
function preg_replace_callback_array(array $patterns, $subject, $limit = -1, &$count = 0) { return p\Php70::preg_replace_callback_array($patterns, $subject, $limit, $count); } | ||
/** | ||
* $flags is not supported. | ||
*/ | ||
function preg_replace_callback_array(array $pattern, $subject, $limit = -1, &$count = 0, $flags = null) { return p\Php70::preg_replace_callback_array($pattern, $subject, $limit, $count); } |
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.
PHPs preg_replace_callback_array
has a $flags argument, but the polyfill doesn't. so I added it. this would work the same.
Adding support for $flags is unrelated to this PR.
da8aa9f
to
e34e94a
Compare
we would probably have to do another round once PHP 8 is released, as more functions are being updated ATM. |
e34e94a
to
f75e14e
Compare
Thank you @azjezz. |
With PHP 8 coming, we need to have function/methods parameters names consistent between polyfills and the original implementations.
I'm not sure if this is all of it yet.
see:
php/php-tasks#23
php/php-tasks#16