junichi11 opened a new pull request #2568: URL: https://github.com/apache/netbeans/pull/2568
https://issues.apache.org/jira/browse/NETBEANS-5062 ```php <?php class Test1 { private function getTest2() { return Test2::returnStatic(); } public function testMethod() { echo "Test1" . PHP_EOL; } public function test() { $static1 = $this->getTest2(); // Before: $static1 is recognized as Test1, After $static1 is recognized as Test2 var_dump($static1); // object(Test2)#2 (0) {} $static1->testMethod(); } } class Test2 { public static function returnStatic() { return new static(); } public function testMethod() { echo "Test2" . PHP_EOL; } } $test = new Test1(); $test->test(); ``` ---------------------------------------------------------------- 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
