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

Problem referencing methods using parent:: more than 1 level of inheritance upwards

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.4.1
    • Fix Version/s: None
    • Component/s: PHP
    • Labels:
    • Environment:

      Aptana Studio 3, build: 3.4.1.201306062137

      Description

      Create a new PHP project with 1 file containing the following:

      <?php
      class A
      {
      function doSomething ()

      { //Does something }

      }

      class B extends A
      {
      function doSomething2()

      { //code suggestion for parent::doS will include parent's doSomething }

      }

      class C extends B
      {
      function doSomethingElse()

      { //code suggestion for parent::doS will not include A's doSomething }

      }

      You will not be able to reference class A's doSomething method from class C using parent::. You will be able to reference A's doSomething method from class B.

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              hila.karimov Hila Karimov
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code