I've noticed in a recent (not sure which exactly) version of Craft that the @property-read declarations for each of the inbuilt services have been dropped from /craft/app/Craft.php.

This means in PHP Storm, I no longer receive valuable code hints following a craft()-> statement:

enter image description here

Is there a new way to access these hints in the recent version? Maybe I've missed something and accessing services via craft() is no longer the preferred method?


The bad news is it's been a bug in PHPStorm since 9.0.1.

The good news is it's been fixed in the PHPStorm 11 EAP and will be in the 11 final release.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.