Skip to content

Commit eeb5c29

Browse files
authored
Merge pull request #426 from PHPCSStandards/feature/tests-fix-invalid-testcase
IsReferenceTest: fix invalid test case
2 parents c5e1807 + 36aa41a commit eeb5c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Core/File/IsReferenceTest.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ functionCall( $something , &new Foobar() );
169169
$closure = function() use (&$var){};
170170

171171
/* testUseByReferenceWithCommentFirstParam */
172-
$closure = function() use /*comment*/ (&$this->value){};
172+
$closure = function() use /*comment*/ (&$value){};
173173

174174
/* testUseByReferenceWithCommentSecondParam */
175175
$closure = function() use /*comment*/ ($varA, &$varB){};

0 commit comments

Comments
 (0)