You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Michael Vorisek (Jira)" <ji...@apache.org> on 2020/04/16 23:15:00 UTC

[jira] [Created] (NETBEANS-4185) PHP: Phpdoc is ignored when :self return type used

Michael Vorisek created NETBEANS-4185:
-----------------------------------------

             Summary: 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 - Code Analysis, php - Refactoring
    Affects Versions: 11.2, 11.0
            Reporter: Michael Vorisek


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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists