Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4863

Content-assist for php function : return new static

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.1.2, Aptana Studio 3.1.3
    • Fix Version/s: None
    • Component/s: Content Assist, PHP
    • Labels:

      Description

      <?php

      class Test{
      	public function testmethod1(){ return new Test; }
      	public function testmethod2(){ return new self; }
      	public function testmethod3(){ return new static; }
      }
       
      class Test2 extends Test{
      	public function testmethod4(){
      		$this->testmethod3()->;
      	}
      }
       
      $t=new Test2();
      $t2=$t->testmethod3();
      print_r(get_class($t2));
      

      No content-assist after "$this->testmethod3()->" : it should propose testmethod1(), testmethod2(), testmethod3() and testmethod4().

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              christophe.hurpeau Christophe Hurpeau
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code