How to avoid call-time pass-by-reference deprecated error in PHP?

后端 未结 5 699
情话喂你
情话喂你 2020-12-14 16:07

I\'m trying to reduce the warnings that are sent to my apache server log.

One warning is:

Call-time pass-by-reference has bee

5条回答
  •  Happy的楠姐
    2020-12-14 16:15

    You could pass an array with a reference in:

    public function takeScriptsWithMarker(array(&$lines, $marker))
    

    which should only take a small amount of refactoring at the other end.

提交回复
热议问题