phptools-docs
phptools-docs copied to clipboard
No error for referencing non-existent class's static variable
In this code:
the class
\vBP_Engine does not exist. I meant to write \vBP_Engine but I forgot the back slash.
However, the IDE didn't catch it and showed to error or warning.
Some more tests:
It seems to happen systematically when referencing static variables in a class.
That's weird, we should underline any unknown class name,
We only don't underline when indexing is in progress, or when the class was already underlined in the function previously.
We also don't underline unknown classes when indexing has not yet finished.
Does this not reproduce for you?
<?php
echo NonExistentClass::$foo;
@php4fan I see, it does! thank you
Fixed