Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I got this message from the validator of plugins from Envato:
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.
&$this
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
&$this
is PHP 4 syntax. WordPress requires version 5 or 7 in which objects are always passed by reference.