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

Content assist does not help within arrays in PHP

    Details

      Description

      In Studio v2 the PHP code assist would make an educated guess on the contents of an array. In Studio v3 however, this is not (yet) implemented. It is a feature I was not even aware of! (I use @var annotations inside foreach blocks, see also Ticket #1714 )

      <?php
          class Bar {
              public function foo() {}    
          }
          
          class Foo {
              public function bar() {}
          } 
          
          $arrayOfFoo = array(new Foo(), new Foo(), new Foo());
          foreach($arrayOfFoo as $anotherFoo) {
              $anotherFoo->bar(); // Aptana Studio 2 would show code assist
          }
          
          $arrayOfFoosAndBars = array(new Foo(), new Bar(), new Foo(), new Bar());
          foreach ($arrayOfFoosAndBars as $fooOrBar) {
              $fooOrBar->bar();
              $fooOrBar->foo(); // Awesome, try this in v2!!
          }
      ?>
      

      Edited on feb. 14

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              joramvandenboezem Joram van den Boezem
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • It looks like Backbone Issue Sync is not enabled for your project.

                  Git Source Code