We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<?php use SomeTrait; class Example { use SomeTrait; public function test(){ $bla = self::$someTraitVar['someKey']; } } ?>
<?php trait SomeTrait { protected static array $someTraitVar = [ 'someKey' => 12345 ]; } ?>
This will mark self::$someTraitVar['someKey']; within the test method as "Avoid using undefined variables...".
Should not be marked as "Avoid using undefined variables...".
See example code above
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Behavior
This will mark self::$someTraitVar['someKey']; within the test method as "Avoid using undefined variables...".
Expected Behavior
Should not be marked as "Avoid using undefined variables...".
Steps To Reproduce:
See example code above
The text was updated successfully, but these errors were encountered: