[resolved] Code Insight Problem |
Site Admin
|
your example works perfectly well:
If you're still experiencing the problem, it must be something else. |
||||||||||||
Last edited by dmitri on Thu May 07, 2009 1:44 pm; edited 1 time in total _________________ The PHP IDE team |
|
Thanks Dimitri. I can see that it works perfectly for you but unfortunately it doesn't for me. Do you have any suggestions as to what I can do to 'reset' the code insight for the file these classes are declared in? Are there any settings in PHPED that might affect this. The only thing you've done slightly differently to me is the order in which the classes are declared. In my file dbConn is declared after the class that calls it in setting $this->db. Could this be the problem?
Thanks again for your help. |
||||||||||||
|
|
I worked it out. I'm new to the PHPdoc format and had put a comment in the code saying '@var resource A PDO resource representing the connection to the database'. PHPED interpreted this as meaning that the variable $this->db was of the type 'resource'. As soon as I changed the comment to '@var PDO A PDO resource representing the connection to the database' it works without a problem.
Thanks again Dimitri and sorry for wasting your time. |
||||||||||||
|
[resolved] Code Insight Problem |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by