[wp-meta] [Making WordPress.org] #7749: Convert assignment statement in Parser class to make compatible to PHP 7.2
Making WordPress.org
noreply at wordpress.org
Fri Aug 16 10:14:01 UTC 2024
#7749: Convert assignment statement in Parser class to make compatible to PHP 7.2
------------------------------+--------------------
Reporter: rabmalin | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Plugin Directory | Keywords:
------------------------------+--------------------
We are using Readme Parser class in a plugin whose minimum supported PHP
is 7.2.
In this class, following in the only statement which is not supported in
PHP 7.2
I am creating this ticket requesting to rewrite following line of code to
make it compatible to PHP 7.2
{{{
$this->warnings['contributor_ignored'] ??= [];
}}}
Ref:
https://github.com/WordPress/wordpress.org/blob/trunk/wordpress.org/public_html
/wp-content/plugins/plugin-directory/readme/class-parser.php#L715
{{{
The null coalesce equal operator (??=) is not present in PHP version 7.3
or earlier (PHPCompatibility.Operators.NewOperators.t_coalesce_equalFound)
}}}
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/7749>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list