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

PHP 7.4 compatibility fix / implode argument order #55

Merged
merged 1 commit into from
Oct 14, 2019

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Oct 10, 2019

implode() takes two parameters, $glue and $pieces.
For historical reasons, implode() accepted these parameters in either order, though it was recommended to use the documented argument order of implode( $glue, $pieces ).

PHP 7.4 deprecates the tolerance for passing the parameters for implode() in reverse order.
PHP 8.0 is expected to remove the tolerance for this completely.

Refs:

`implode()` takes two parameters, `$glue` and `$pieces`.
For historical reasons, `implode()` accepted these parameters in either order, though it was recommended to use the documented argument order of `implode( $glue, $pieces )`.

PHP 7.4 deprecates the tolerance for passing the parameters for `implode()` in reverse order.
PHP 8.0 is expected to remove the tolerance for this completely.

Refs:
* https://wiki.php.net/rfc/deprecations_php_7_4#implode_parameter_order_mix
* https://php.net/manual/en/function.implode.php
This was referenced Oct 11, 2019
@gmazzap
Copy link
Collaborator

gmazzap commented Oct 14, 2019

Definetively my mistake. Thanks a lot.

@gmazzap gmazzap merged commit 56a20fc into Brain-WP:master Oct 14, 2019
@jrfnl jrfnl deleted the feature/php-7.4-compatibility-fix branch October 14, 2019 09:22
@jrfnl
Copy link
Collaborator Author

jrfnl commented Oct 14, 2019

@gmazzap Everyone makes those ;-)

@jrfnl jrfnl mentioned this pull request Oct 28, 2019
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.

None yet

2 participants