On Thu, Oct 10, 2019 at 1:50 PM Richard Quadling <[email protected]> wrote: > * Current design of PSR-5/PSR-19 > * @method static RickRollMe() Am I statically called? Or do I return an > instance of the subclass > * @method static RickRollYou() Am I statically called? Or do I return an > instance of the subclass
To reference a prior art, phpDocumentor treats `static` in `@method static methodName()` as a return type, and to get it recognized as a modifier you need to provide explicit return type as in `@method static void methodName()` or `@method static static methodName()` [1]. Psalm and Phan interpret them the same way. So your examples become: /** * @method static RickRollMe() I am dynamically called and return an instance of the subclass * @method static static RickRollYou() I am statically called and return an instance of the subclass */ [1] https://github.com/phpDocumentor/phpDocumentor2/issues/822 -- Best regards, Bruce Weirdan mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CA%2Bhqhpfwp6UPV_qkuDqyDa59H0G92br%3DJ6AgRhHFRFHXFM_tMA%40mail.gmail.com.
