How to avoid field accessed via magic method

If you want to remove this without document comments you can uncheck Notify about access to a field via magic method which is found in:

Project Settings > Inspections > PHP > Undefined > Undefined field

Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top