Skip to content

Commit becf13a

Browse files
committed
rescope
1 parent 47bd2a5 commit becf13a

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,18 +1047,6 @@ public function ignored() {
10471047
* @throws Exception If any other error occurs. */
10481048
function throwCommentOneLine() {}
10491049

1050-
/**
1051-
* Using generic as a type hint should satisfy a specified object parameter type.
1052-
* @see https://phpstan.org/blog/generics-in-php-using-phpdocs
1053-
*
1054-
* @param Collection<int, string> $values An object with int, string pairs.
1055-
*
1056-
* @return void
1057-
*/
1058-
public function genericType(Collection $values) {
1059-
1060-
}// end genericType()
1061-
10621050
/**
10631051
* When two adjacent pipe symbols are used (by mistake), the sniff should not throw a PHP Fatal error
10641052
*
@@ -1170,3 +1158,15 @@ function paramVariation3($hasTypeNoComment): void {}
11701158
* @return void
11711159
*/
11721160
function paramVariation4($hasTypehasComment): void {}
1161+
1162+
/**
1163+
* Using generic as a type hint should satisfy a specified object parameter type.
1164+
* @see https://phpstan.org/blog/generics-in-php-using-phpdocs
1165+
*
1166+
* @param Collection<int, string> $values An object with int, string pairs.
1167+
*
1168+
* @return void
1169+
*/
1170+
public function genericType(Collection $values) {
1171+
1172+
}// end genericType()

src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc.fixed

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,18 +1047,6 @@ public function ignored() {
10471047
* @throws Exception If any other error occurs. */
10481048
function throwCommentOneLine() {}
10491049

1050-
/**
1051-
* Using generic as a type hint should satisfy a specified object parameter type.
1052-
* @see https://phpstan.org/blog/generics-in-php-using-phpdocs
1053-
*
1054-
* @param Collection<int, string> $values An object with int, string pairs.
1055-
*
1056-
* @return void
1057-
*/
1058-
public function genericType(Collection $values) {
1059-
1060-
}// end genericType()
1061-
10621050
/**
10631051
* When two adjacent pipe symbols are used (by mistake), the sniff should not throw a PHP Fatal error
10641052
*
@@ -1170,3 +1158,15 @@ function paramVariation3($hasTypeNoComment): void {}
11701158
* @return void
11711159
*/
11721160
function paramVariation4($hasTypehasComment): void {}
1161+
1162+
/**
1163+
* Using generic as a type hint should satisfy a specified object parameter type.
1164+
* @see https://phpstan.org/blog/generics-in-php-using-phpdocs
1165+
*
1166+
* @param Collection<int, string> $values An object with int, string pairs.
1167+
*
1168+
* @return void
1169+
*/
1170+
public function genericType(Collection $values) {
1171+
1172+
}// end genericType()

0 commit comments

Comments
 (0)