Skip to content

Commit 9d86ccb

Browse files
committed
Tests: Make sure fixtures are valid php
1 parent 8cadde1 commit 9d86ccb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

VariableAnalysis/Tests/CodeAnalysis/fixtures/FunctionWithClosureFixture.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ function method_with_self_inside_closure() {
5656
function function_with_self_in_closure() {
5757
return function() {
5858
return self::$foobar; // should be an error
59-
}
59+
};
6060
}
6161

6262
function function_with_this_in_closure() {
6363
return function() {
6464
return $this->$foobar; // should be an error
65-
}
65+
};
6666
}
6767

6868
function function_with_static_in_closure() {
6969
return function() {
7070
return static::$foobar; // should be an error
71-
}
71+
};
7272
}
7373

7474
class ClassWithStaticInsideClosure {

0 commit comments

Comments
 (0)