Skip to content

Commit 8c2b1c1

Browse files
committed
GetMethodParametersTest: sync with upstream
See PR PHPCSStandards/PHP_CodeSniffer 777
1 parent 33dd777 commit 8c2b1c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/BackCompat/BCFile/GetMethodParametersTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function messyDeclaration(
118118
?\MyNS /* comment */
119119
\ SubCat // phpcs:ignore Standard.Cat.Sniff -- for reasons.
120120
\ MyClass $a,
121-
$b /* test */ = /* test */ 'default' /* test*/,
121+
$b /* comment */ = /* comment */ 'default' /* comment*/,
122122
// phpcs:ignore Stnd.Cat.Sniff -- For reasons.
123123
? /*comment*/
124124
bool // phpcs:disable Stnd.Cat.Sniff -- For reasons.

Tests/BackCompat/BCFile/GetMethodParametersTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,8 +1226,8 @@ public function testMessyDeclaration()
12261226
$expected[1] = [
12271227
'token' => ($php8Names === true) ? 28 : 29,
12281228
'name' => '$b',
1229-
'content' => "\$b /* test */ = /* test */ 'default' /* test*/",
1230-
'default' => "'default' /* test*/",
1229+
'content' => "\$b /* comment */ = /* comment */ 'default' /* comment*/",
1230+
'default' => "'default' /* comment*/",
12311231
'default_token' => ($php8Names === true) ? 36 : 37,
12321232
'default_equal_token' => ($php8Names === true) ? 32 : 33,
12331233
'has_attributes' => false,

0 commit comments

Comments
 (0)