[ https://issues.apache.org/jira/browse/NETBEANS-4185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomáš Procházka resolved NETBEANS-4185. --------------------------------------- Fix Version/s: 12.1 Resolution: Fixed PR was merged. > PHP: Phpdoc is ignored when :self return type used > -------------------------------------------------- > > Key: NETBEANS-4185 > URL: https://issues.apache.org/jira/browse/NETBEANS-4185 > Project: NetBeans > Issue Type: Bug > Components: php - Editor > Affects Versions: 11.0, 11.2 > Reporter: Michael Vorisek > Assignee: Tomáš Procházka > Priority: Minor > Labels: pull-request-available > Fix For: 12.1 > > Time Spent: 1.5h > Remaining Estimate: 0h > > {code:php} > class A > { > public $x; > /** > * @return static > */ > public function x(): self { } > } > class B extends A > { > public $y; > } > $cl = new B(); > $cl->x()-> // ->y is not autohinted due to the "self" return type even if > documented with "static" return type > {code} > The return type of B::x() should be "B" (static) instead of "A" (self). -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists