I would say it's a shame traits code completion was not implemented in 8.1!
What's worse, code completion is totally broken for classes that make use of traits.
Consider the following code, the last line not only doesn't list trt, but it throws an error dialog box "Item not found". The result is the same even without the artificial conflict resolution block in the class. The parser is "5.3 and higher".
Official PHP 5.4 came out in March 2012, with betas back in June 2011.
I suupose v9.0 is far away..
In 8.0 at least traits were ignored and the rest of the class was code-completed as before.
<?php
namespace test3;
trait tr1 {
public function trtest1() {
echo "tr1::trtest1()<br>";
}
}
class class1 {
use tr1 { tr1::trtest1 as trt;}
public function c1test() {
echo 'class1::c1test()<br>';
}
}
$c = new class1();
$c-> |
Edit: It seems the namespace declaration breaks the code completion here.
I guess this should be filed as a bug.. of course after at least another one confirms this is a bug (I might have overlooked something).
Edit2: It's clearly a bug - After each closing of the IDE when such an error dialog was "invoked" on a failed code completion, then when starting the program again, it pops up a warning everytime that the IDE crashed last time it was closed.
I's become kind of a habit, with every major or submajor update lately there are many new and annoying bugs introduced, mainly relating to code completion reliability. 8.1 is not an exception. Every now and then one gets stuck in his/her work with another update that's buggy enough to make this happen. Come on, test more before releasing, please. The product is expensive enough to drop the testing phase to such lows. One is left with no choice but to adopt some version that is stable enough and not update until some major pain gets in the way with some new PHP version etc.
I wonder, is the bug feedback in the forums taken into consideration or is just ignored by the devs (because "not the right place to report")? Many people don't reach that far to report a bug in the Contact Us page, they just look for help in the forums.