We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cadde1 commit 9d86ccbCopy full SHA for 9d86ccb
VariableAnalysis/Tests/CodeAnalysis/fixtures/FunctionWithClosureFixture.php
@@ -56,19 +56,19 @@ function method_with_self_inside_closure() {
56
function function_with_self_in_closure() {
57
return function() {
58
return self::$foobar; // should be an error
59
- }
+ };
60
}
61
62
function function_with_this_in_closure() {
63
64
return $this->$foobar; // should be an error
65
66
67
68
function function_with_static_in_closure() {
69
70
return static::$foobar; // should be an error
71
72
73
74
class ClassWithStaticInsideClosure {
0 commit comments