Strict Standards: Declaration of ' ' should be compatible with ' '

前端 未结 5 805
长发绾君心
长发绾君心 2020-12-10 01:38

I just installed woocommerce 2.0 (on Wordpress) on PHP 5.4, and I got this:

Strict Standards: Declaration of WC_Gateway_BACS::process

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 02:34

    Here is a better answer - https://stackoverflow.com/a/9243127/2165415

    for example,
    parentClass::customMethod($thing = false) and
    childClass::customMethod($thing)
    so, when you call customMethod() for the class, it may trigger the error, because the child's method hasn't defined a default value for the first argument.

提交回复
热议问题