NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[BUG] Code Insight / Code Completion inside curly braces


Joined: 21 Aug 2007
Posts: 14
Reply with quote
Hi,

A problem we have found with PHPEd is that the nifty code completion feature does not work in the following scenario:

Code:

<?php
   
   class TestClass {
      const SOME_VALUE = 'some_value';
      const SOME_OTHER_VALUE = 'some_other_value';
   }
   
   class AnObject {
      public
         $some_value = null,
         $some_other_value = null;
   }
   
   $test = new AnObject();
   
   # Code complete does not trigger when cursor is inside the curly braces {}:
   $test->{TestClass::SOME_VALUE} = 100;
   
   # Code complete triggers BEFORE the ::, but after that I get 'failed to identify type of foo global variable'
   $foo = TestClass::SOME_VALUE;
   
   # Code complete works fully when typing the statement, however this statement is largely useless
   TestClass::SOME_OTHER_VALUE;
   
?>


Is this a bug (certainly seems like it)?

Cheers,

Matthew
View user's profileFind all posts by binarymonkeySend private message


Joined: 07 Nov 2007
Posts: 44
Reply with quote
Thank you for your report, we'll look into it.
Regards,
Nusphere support team
View user's profileFind all posts by gitmansSend private message
[BUG] Code Insight / Code Completion inside curly braces
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic