Skip to content

Commit

Permalink
Merge pull request #574 from PHPCSStandards/feature/isreferencetest-f…
Browse files Browse the repository at this point in the history
…ix-invalid-testcase

IsReferenceTest: fix invalid test case
  • Loading branch information
jrfnl authored Mar 31, 2024
2 parents f627b49 + 0fdc11f commit 45e0721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/BackCompat/BCFile/IsReferenceTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ functionCall( $something , &new Foobar() );
$closure = function() use (&$var){};

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

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

0 comments on commit 45e0721

Please sign in to comment.