oop - Does &$this is really disallowed to use anywhere?

admin2025-06-04  1

I got this message from the validator of plugins from Envato:

  1. When creating a callable, never use &$this, use $this instead:

I think he may be wrong with his 'never use'. Are we really NOT SAVING a memory when we are passing an object by reference? Can only clarify on this?

Thank you.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749000776a315510.html

最新回复(0)