Title: PHP Compatibility Errors
Last modified: January 25, 2021

---

# PHP Compatibility Errors

 *  [Ebonie Butler](https://wordpress.org/support/users/metalandcoffee/)
 * (@metalandcoffee)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-compatibility-errors-2/)
 * I ran the PHP Compatibility ruleset ([https://github.com/PHPCompatibility/PHPCompatibilityWP](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.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ebonie Butler](https://wordpress.org/support/users/metalandcoffee/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/php-compatibility-errors-2/)
 * Status: not resolved