PHPCompatibility / PHPCompatibilityWP

PHPCompatibility ruleset for WordPress projects
GNU Lesser General Public License v3.0
179 stars 11 forks source link

WP 5.9: account for new function polyfills #35

Closed jrfnl closed 2 years ago

jrfnl commented 2 years ago

WP 5.9 contains polyfills for five new PHP native functions:

While the PHP 8.0 functions are not yet flagged by the latest release of PHPCompatibility, they will be once PHPCompatibility 10.0 comes out.

As exclude-ing error codes which don't exist yet does not lead to errors in PHPCS, we may as well add the exclusions for all WP 5.9 polyfills in one go.

Refs: