Groups
Groups
Sign in
Groups
Groups
PHP Framework Interoperability Group
Conversations
About
Send feedback
Help
[PSR-5] Please clarify that @method can be used for non-magic usages
29 views
Skip to first unread message
Gabriel O
unread,
Dec 16, 2018, 2:10:30 PM
12/16/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PHP Framework Interoperability Group
I had a problem with this in the past in
https://github.com/vimeo/psalm/issues/632
Usage of this annotation is nowadays pretty wide spread, but they are often not only used in classes with __call, but also just for specifying what inherited methods return, in covariant style.
Such usages are currently controversial, since @method is defined only in
https://docs.phpdoc.org/references/phpdoc/tags/method.html
which strongly hints this is only for situations when you want to describe __call methods.
Please think about this in PSR-5 as well.
Reply all
Reply to author
Forward
0 new messages