[resolved] PHP5 and code completion |
Veteran
|
|
||||||||||||
|
Site Admin
|
Code completion just can not work for the sample you provided. It's more of PHP dynamic nature.
Indeed, from code insight perspectives, the structure of the object being iterated with foreach() is not known or well-defined. I'd recommend you to add type hint. |
||||||||||||
_________________ The PHP IDE team |
Veteran
|
But Dimitri, in the last example shown in the image, two lines above the code completion worked. It worked in the if statement, but two lines below within the same scope it stopped working?
That is kind of frustrating. I have even seen wrong code completion on the DirectoryIterator object, it acted as if were the PDO object, until I discovered that I have forgotten a ; Can't really see how this has something to do with PHP, Why is these PHP 5 SPL and PDO libs not part of the standard PHPed code completion package? I mean for every PHP4 statement code completion works like a charm, but when it comes to PHP 5, and these extension files, it is so buggy. |
||||||||||||
|
Site Admin
|
and what makes you thinking it stopped working? It just can't resolve one variable as it's know known to the IDE what instance/type is in $currentFile variable. It can not be resolved on any lines in your code. It does not mean that code completion won't work for the other variables.
You are not right. There are no bugs at all. At least no bugs reported. |
||||||||||||||||
_________________ The PHP IDE team |
[resolved] PHP5 and code completion |
|
||
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