Skip to content

Commit

Permalink
GetMethodParametersTest: sync with upstream
Browse files Browse the repository at this point in the history
See PR PHPCSStandards/PHP_CodeSniffer 777
  • Loading branch information
jrfnl committed Dec 22, 2024
1 parent 33dd777 commit 8c2b1c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tests/BackCompat/BCFile/GetMethodParametersTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function messyDeclaration(
?\MyNS /* comment */
\ SubCat // phpcs:ignore Standard.Cat.Sniff -- for reasons.
\ MyClass $a,
$b /* test */ = /* test */ 'default' /* test*/,
$b /* comment */ = /* comment */ 'default' /* comment*/,
// phpcs:ignore Stnd.Cat.Sniff -- For reasons.
? /*comment*/
bool // phpcs:disable Stnd.Cat.Sniff -- For reasons.
Expand Down
4 changes: 2 additions & 2 deletions Tests/BackCompat/BCFile/GetMethodParametersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1226,8 +1226,8 @@ public function testMessyDeclaration()
$expected[1] = [
'token' => ($php8Names === true) ? 28 : 29,
'name' => '$b',
'content' => "\$b /* test */ = /* test */ 'default' /* test*/",
'default' => "'default' /* test*/",
'content' => "\$b /* comment */ = /* comment */ 'default' /* comment*/",
'default' => "'default' /* comment*/",
'default_token' => ($php8Names === true) ? 36 : 37,
'default_equal_token' => ($php8Names === true) ? 32 : 33,
'has_attributes' => false,
Expand Down

0 comments on commit 8c2b1c1

Please sign in to comment.