Hello,
I will stick this topic.
This is a known issue since WP 5.3. With this new release, we had to choose between having this warning or stop supporting PHP < 5.6, even for older versions of WordPress as it’s currently not possible to support older versions of PHP for older version of WordPress without having this warning in WP 5.3.
Considering that this warning has no impact on the way the plugin works (just set WP_DEBUG
to false
in production and that’s ok) and the fact that we don’t want to change the PHP min version in a minor release, the issue will stay as is in WP 5.3 + Polylang 2.6.x.
The warning is already fixed in the development version of Polylang 2.7, for which we will require PHP 5.6 or older. See https://github.com/polylang/polylang/issues/414
See also https://make.www.ads-software.com/core/2019/10/09/wp-5-3-introducing-the-spread-operator/ for the WordPress background.