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

PHP code proposals for the static keyword

    Details

      Description

      If I have this code dummy code:

      <?php
      class Dummy {
      	const PI = 3.14159;
      	private static $MagicNumber = 9;
       
      	public static function GetNumber() {
      		return static::$MagicNumber;
      	}
      }
      ?>
      

      When I get to type 'static::' in the function GetNumber() then the code proposals window should pop-up with the PI constant and the static member MagicNumber; but I get nothing (no pop-up proposals window). If I hit Ctrl+Space to manually load the window I get just the 'No proposals' text.

      This happens every time I use the static:: keyword for referencing the class that get called. This should work very much as the self:: keyword.

      This works in ZendStudio and Netbeans...

        Attachments

          Activity

            People

            • Assignee:
              sgibly Shalom Gibly
              Reporter:
              axelitus Axel Pardemann
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code