• Resolved Robert Peake

    (@robertpeake)


    One of the methods of a child class does not have the same parameters as the parent, generating the following warning in php7:

    Warning: Declaration of WeDevs_WC_Tracking_Integration::validate_textarea_field($key) should be compatible with WC_Settings_API::validate_textarea_field($key, $value) in /var/www/html/wordpress/wp-content/plugins/woocommerce-conversion-tracking/includes/integration.php on line 302

    • This topic was modified 8 years, 1 month ago by Robert Peake.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Robert Peake

    (@robertpeake)

    Any further thoughts on resolving this? Should be a quick line of code…

    Thread Starter Robert Peake

    (@robertpeake)

    Literally just changing /path/to/wordpress/wp-content/plugins/woocommerce-conversion-tracking/includes/integration.php:302 from validate_textarea_field($key) to validate_textarea_field($key, $value = null) would make this warning go away.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning in PHP7’ is closed to new replies.