Magento – Making PHPStorm recognize magic getter

magic-gettermethodsphpstorm

I got accustomed to using PHPStorm's validation feature, the yellow flags on right of editor showing whenever a method could not be found.

I found that it doesn't recognize magic getter methods, for instance: $attribute->getAttributeCode().

Anyone ever made this work ?

Thank you.

Best Answer

most of the issues get resolved if you use n98-magerun to generate the phpstorm meta file https://github.com/netz98/n98-magerun#development-ide-support

If there are cases where this does not happen correctly, please report them, so it can get extended :)

Related Topic