<p>The bad news is it's been a bug in PHPStorm since 9.0.1.</p>

<p>The good news is it's been fixed in the PHPStorm 11 <a href="https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program" rel="nofollow">EAP</a> and will be in the 11 final release.</p>

<p><a href="https://youtrack.jetbrains.com/issue/WI-28394" rel="nofollow">https://youtrack.jetbrains.com/issue/WI-28394</a></p>

CC BY-SA 3.0
2016-01-29T00:16:24.480Z
Interesting... Although those declarations have been removed either way, so where would the new hinting come from?
Marty
CC BY-SA 3.0
2016-01-29T00:17:52.750Z
They haven't been removed from Craft itself: https://github.com/pixelandtonic/Craft-Release/blob/master/app/etc/web/WebApp.php#L5
Brad Bell
CC BY-SA 3.0
2016-01-29T00:18:43.600Z
Ahh, the old `WebApp` class, of course.
Marty
CC BY-SA 3.0
2016-01-29T00:10:55.153Z
2016-01-29T00:10:55.153Z
Brad Bell
<p>I've noticed in a recent (not sure which exactly) version of Craft that the <code>@property-read</code> declarations for each of the inbuilt services have been dropped from <code>/craft/app/Craft.php</code>.</p>

<p>This means in PHP Storm, I no longer receive valuable code hints following a <code>craft()-&gt;</code> statement:</p>

<p><a href="https://i.sstatic.net/5cs6X.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/5cs6X.png" alt="enter image description here"></a></p>

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

<plugin-development><documentation>
Where did the @property delcarations for the inbuilt services go?
# Where did the @property delcarations for the inbuilt services go?

(Asked by: username_0 on 2016-01-29)

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](https://i.sstatic.net/5cs6X.png)](https://i.sstatic.net/5cs6X.png)

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?

**Tags:** plugin-development, documentation


---

## 1 answers

### Answer by username_1 on 2016-01-29. Score: 3 | Accepted answer

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](https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program) and will be in the 11 final release.

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

> **Comments:**
> **username_0**: Interesting... Although those declarations have been removed either way, so where would the new hinting come from?  
> **username_1**: They haven't been removed from Craft itself: https://github.com/pixelandtonic/Craft-Release/blob/master/app/etc/web/WebApp.php#L5  
> **username_0**: Ahh, the old `WebApp` class, of course.  

---

