NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Extending class and autocomplete


Joined: 18 Sep 2007
Posts: 54
Location: Croatia
Reply with quote
I'm using PhpEd 5.5 (5518)

When I want to work in extended class, using $this-> produce following error:
Failed to identify type of "$this" local variable.
View user's profileFind all posts by konixnetSend private messageVisit poster's website


Joined: 18 Sep 2007
Posts: 54
Location: Croatia
Reply with quote
Further investigation showed that this problem doesn't have anything with class extension.

If you have function inside a class method, autocomplete will not work after that function.

For instance:

class MyClass {
public function myMethod() {

// Autocomplete works here...

function someFunction() {
}


// Autocomplete doesn't work any more

}
}

Why would someone go to function inside a method and not to make protected static method, I don't know but it isn't a reason to effect PhpEd.
View user's profileFind all posts by konixnetSend private messageVisit poster's website
Extending class and autocomplete
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