Skip to content

PHP 7.4 compatibility fix / implode argument order#617

Merged
mblaney merged 1 commit intosimplepie:masterfrom
jrfnl:feature/php-7.4-compatibility-implode
Jul 21, 2019
Merged

PHP 7.4 compatibility fix / implode argument order#617
mblaney merged 1 commit intosimplepie:masterfrom
jrfnl:feature/php-7.4-compatibility-implode

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jul 21, 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 is slated to deprecate 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 is slated to deprecate 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
@mblaney mblaney merged commit 38b5049 into simplepie:master Jul 21, 2019
@mblaney
Copy link
Member

mblaney commented Jul 21, 2019

thanks @jrfnl

@jrfnl jrfnl deleted the feature/php-7.4-compatibility-implode branch July 21, 2019 07:42
@jrfnl
Copy link
Contributor Author

jrfnl commented Jul 21, 2019

You're welcome @mblaney ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants