Aug 3, 2012

Quick tip: magic methods and PhpStorm

If you use PhpStorm and add magic methods to a class (__get/__set/__call), you may notice that PhpStorm generates warnings for undefined class attributes and methods. A typical example is when you implement automatic getters and setters for protected instance variables: