Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362618

Summary: ctrl+click goes to the wrong method
Product: z_Archived Reporter: Zhongwei Zhao <zhaozhongwei>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Zhongwei Zhao CLA 2011-11-01 22:12:54 EDT
namespace Alliance;

  class DateTime extends \DateTime {

      public function __construct($aTime = 'now', \DateTimeZone $aTimeZone = NULL) {

        $time = $aTime;
        /* do some stuff */

        if ($aTimeZone) {
          parent::__construct($time, $aTimeZone); //ctrl+click here
        }
        else {
          parent::__construct($time); //ctrl+click here
        }

      }
}

press ctrl+click on __construct of parent::__construct,it will go to __construct of \Alliance\DateTime,but it should go \DateTime::__construct
Comment 1 Zhongwei Zhao CLA 2011-11-01 22:33:51 EDT
fixed
Comment 2 Kalin CLA 2012-07-04 07:22:02 EDT
Verified fixed.
Closing...

Kalin Yanev
kalin.a@zend.com