-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static methods and properties accessed through a variable are not detected #213
Comments
Backport to branch 4.5 is planned later. Major version 5.0 (stable) is planned for saturday (+2 days now) |
👍 Unfortunately, the issue is only partly solved. The case of a static method is handled, but not a static property. Perhaps I should have split my test file into two: <?php
class MyClass {
public static function test() {
//Do something
}
}
$name = 'MyClass';
//Following line is supported only in PHP 5.3+
$name::test(); <?php
class MyClass {
public static $t = 't';
}
$name = 'MyClass';
//Following line is supported only in PHP 5.3+
echo $name::$t; |
Don't noticed your comment, when you wrote it ! Sorry, but better late than never ;-) Will be fixed with upcoming release 6.4 |
@jack126guy Now both use case are detected : see new specialized |
The following code is reported as requiring PHP 5.0.0. However, accessing static methods and properties through a variable with the class name was added in PHP 5.3.0.
The text was updated successfully, but these errors were encountered: