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

前端 未结 5 779
长发绾君心
长发绾君心 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:21

    if you wanna keep OOP form without turning any error off, you can also:

    class A
    {
        public function foo() {
            ;
        }
    }
    class B extends A
    {
        /*instead of : 
        public function foo($a, $b, $c) {*/
        public function foo() {
            list($a, $b, $c) = func_get_args();
            // ...
    
        }
    }
    

提交回复
热议问题