PHP Compatibility Errors
-
I ran the PHP Compatibility ruleset (https://github.com/PHPCompatibility/PHPCompatibilityWP) against the ACF Pro plugin code (version 5.9.4) and here are the results. I am wondering how critical these warnings/errors are as I plan an upgrade to PHP 7.4 and if any one of them plan to be addressed.
FILE: plugins/advanced-custom-fields-pro/includes/acf-field-functions.php ---------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------------- 574 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as | | passed to a parameter, but will instead provide the current value. The parameter "$post_id" was used, and | | possibly changed (by reference), on line 573. ---------------------------------------------------------------------------------------------------------------------------------- FILE: plugins/advanced-custom-fields-pro/includes/acf-value-functions.php ---------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------------- 164 | WARNING | Declaring a required parameter after an optional one is deprecated since PHP 8.0. Parameter $value is optional, | | while parameter $field is required. ---------------------------------------------------------------------------------------------------------------------------------- Time: 3.59 secs; Memory: 28MB
- The topic ‘PHP Compatibility Errors’ is closed to new replies.