Hi,
A problem we have found with PHPEd is that the nifty code completion feature does not work in the following scenario:
<?php
class TestClass {
const SOME_VALUE = 'some_value';
const SOME_OTHER_VALUE = 'some_other_value';
}
class AnObject {
public
$some_value = null,
$some_other_value = null;
}
$test = new AnObject();
# Code complete does not trigger when cursor is inside the curly braces {}:
$test->{TestClass::SOME_VALUE} = 100;
# Code complete triggers BEFORE the ::, but after that I get 'failed to identify type of foo global variable'
$foo = TestClass::SOME_VALUE;
# Code complete works fully when typing the statement, however this statement is largely useless
TestClass::SOME_OTHER_VALUE;
?>
|
Is this a bug (certainly seems like it)?
Cheers,
Matthew