Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362618 - ctrl+click goes to the wrong method
Summary: ctrl+click goes to the wrong method
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 22:12 EDT by Zhongwei Zhao CLA
Modified: 2020-05-14 11:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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