PHP Fatal error: Cannot use $this as parameter

后端 未结 3 1518
悲哀的现实
悲哀的现实 2020-12-11 07:38

I\'ve the following PHP method which is part of the codebase which was working fine:



        
3条回答
  •  天命终不由人
    2020-12-11 08:03

    Yeah, as previously stated by aynber, you can't pass in $this as a function param. By doing so, you're basically redeclaring it. You should just remove it as a function param.

提交回复
热议问题