0

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?

3

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.

https://youtrack.jetbrains.com/issue/WI-28394

3

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.