PHP is handling incorrectly my static call

前端 未结 5 1074
野趣味
野趣味 2020-12-17 05:34

I\'m havinh a problem on PHP 5.3. I need to call a method by using __callStatic, but if I use it in a instancied object, PHP call __call instead.

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 06:37

    Inheritance of static methods is a bit weird in PHP. I suspect you need to redefine __callStatic in B

提交回复
热议问题