klesun / deep-assoc-completion

A phpstorm plugin for associative array key typing and completion
Other
266 stars 17 forks source link

Magic::dbRow in @return #141

Closed amarianski closed 4 years ago

amarianski commented 4 years ago

When I have a method which returns associative array of many rows constructs like this: array [$anyKey=>Magic::dbRow("table")] work perfectly. However when trying: @return Magic::dbRow("table") I get no hints and: obraz

klesun commented 4 years ago

As a quick workaround, does any of following formats work?

@return array = Magic::dbRow("authorities")
@return = Magic::dbRow("authorities")
@return array Magic::dbRow("authorities")
klesun commented 4 years ago

I remember there were some issues in writing class name right after the @return as phpstorm interpreted it as the return type being this class...

amarianski commented 4 years ago

All of them work perfectly :) Great job I really appreciate your plugin! It would be nice if there is a page with documentation of everything possible.

klesun commented 4 years ago

https://github.com/klesun/deep-assoc-completion/issues/63 - here more or less all phpdoc formats are described (recently added the link to README, hope everyone will be able to find it in future)