KacerCZ commented on pull request #2242: URL: https://github.com/apache/netbeans/pull/2242#issuecomment-656237641
@tmysik Yes, it is valid. Type `static` is subtype of `self`. Using `self` as native return type is still better than leaving it out completely. It is similar case as when you use type `array` in formal parameter and then use `@param \DateTime[]` to indicate that array should contain `\DateTime` objects. PHP 8 will have native `static` return type - https://wiki.php.net/rfc/static_return_type ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
