Skip to content

Commit 69cae8f

Browse files
committed
Fake PHPCodeSniffer tokens are strings
1 parent 3d7233d commit 69cae8f

30 files changed

+36
-36
lines changed

SlevomatCodingStandard/Helpers/TokenHelper.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TokenHelper
4343

4444
/**
4545
* @param \PHP_CodeSniffer_File $phpcsFile
46-
* @param int|int[] $types
46+
* @param mixed|mixed[] $types
4747
* @param int $startPointer
4848
* @param int|null $endPointer
4949
* @return int|null
@@ -59,7 +59,7 @@ public static function findNext(\PHP_CodeSniffer_File $phpcsFile, $types, int $s
5959

6060
/**
6161
* @param \PHP_CodeSniffer_File $phpcsFile
62-
* @param int|int[] $types
62+
* @param mixed|mixed[] $types
6363
* @param string $content
6464
* @param int $startPointer
6565
* @param int|null $endPointer
@@ -87,7 +87,7 @@ public static function findNextEffective(\PHP_CodeSniffer_File $phpcsFile, int $
8787

8888
/**
8989
* @param \PHP_CodeSniffer_File $phpcsFile
90-
* @param int|int[] $types
90+
* @param mixed|mixed[] $types
9191
* @param int $startPointer search starts at this token, inclusive
9292
* @param int|null $endPointer search ends at this token, exclusive
9393
* @return int|null
@@ -103,7 +103,7 @@ public static function findNextExcluding(\PHP_CodeSniffer_File $phpcsFile, $type
103103

104104
/**
105105
* @param \PHP_CodeSniffer_File $phpcsFile
106-
* @param int|int[] $types
106+
* @param mixed|mixed[] $types
107107
* @param int $startPointer
108108
* @param int|null $endPointer
109109
* @return int|null
@@ -119,7 +119,7 @@ public static function findNextLocal(\PHP_CodeSniffer_File $phpcsFile, $types, i
119119

120120
/**
121121
* @param \PHP_CodeSniffer_File $phpcsFile
122-
* @param int|int[] $types
122+
* @param mixed|mixed[] $types
123123
* @param int $startPointer
124124
* @param int|null $endPointer
125125
* @return int|null
@@ -146,7 +146,7 @@ public static function findNextAnyToken(\PHP_CodeSniffer_File $phpcsFile, int $s
146146

147147
/**
148148
* @param \PHP_CodeSniffer_File $phpcsFile
149-
* @param int[]|int $types
149+
* @param mixed|mixed[] $types
150150
* @param int $startPointer search starts at this token, inclusive
151151
* @param int|null $endPointer search ends at this token, exclusive
152152
* @return int|null
@@ -173,7 +173,7 @@ public static function findPreviousEffective(\PHP_CodeSniffer_File $phpcsFile, i
173173

174174
/**
175175
* @param \PHP_CodeSniffer_File $phpcsFile
176-
* @param int[]|int $types
176+
* @param mixed|mixed[] $types
177177
* @param int $startPointer search starts at this token, inclusive
178178
* @param int|null $endPointer search ends at this token, exclusive
179179
* @return int|null

SlevomatCodingStandard/Sniffs/Arrays/TrailingArrayCommaSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TrailingArrayCommaSniff implements \PHP_CodeSniffer_Sniff
1010
const CODE_MISSING_TRAILING_COMMA = 'MissingTrailingComma';
1111

1212
/**
13-
* @return int[]
13+
* @return mixed[]
1414
*/
1515
public function register(): array
1616
{

SlevomatCodingStandard/Sniffs/Classes/ClassConstantVisibilitySniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ClassConstantVisibilitySniff implements \PHP_CodeSniffer_Sniff
1818
public $enabled = PHP_VERSION_ID >= 70100;
1919

2020
/**
21-
* @return int[]
21+
* @return mixed[]
2222
*/
2323
public function register(): array
2424
{

SlevomatCodingStandard/Sniffs/Classes/UnusedPrivateElementsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class UnusedPrivateElementsSniff implements \PHP_CodeSniffer_Sniff
3636
private $normalizedAlwaysUsedPropertiesSuffixes;
3737

3838
/**
39-
* @return int[]
39+
* @return mixed[]
4040
*/
4141
public function register(): array
4242
{

SlevomatCodingStandard/Sniffs/Commenting/ForbiddenAnnotationsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ForbiddenAnnotationsSniff implements \PHP_CodeSniffer_Sniff
1717
private $normalizedForbiddenAnnotations;
1818

1919
/**
20-
* @return int[]
20+
* @return mixed[]
2121
*/
2222
public function register(): array
2323
{

SlevomatCodingStandard/Sniffs/Commenting/InlineDocCommentDeclarationSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class InlineDocCommentDeclarationSniff implements \PHP_CodeSniffer_Sniff
1212
const CODE_INVALID_FORMAT = 'InvalidFormat';
1313

1414
/**
15-
* @return int[]
15+
* @return mixed[]
1616
*/
1717
public function register(): array
1818
{

SlevomatCodingStandard/Sniffs/ControlStructures/AssignmentInConditionSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AssignmentInConditionSniff implements \PHP_CodeSniffer_Sniff
1010
const CODE_ASSIGNMENT_IN_CONDITION = 'AssignmentInCondition';
1111

1212
/**
13-
* @return int[]
13+
* @return mixed[]
1414
*/
1515
public function register(): array
1616
{

SlevomatCodingStandard/Sniffs/ControlStructures/DisallowEqualOperatorsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class DisallowEqualOperatorsSniff implements \PHP_CodeSniffer_Sniff
99
const CODE_DISALLOWED_NOT_EQUAL_OPERATOR = 'DisallowedNotEqualOperator';
1010

1111
/**
12-
* @return int[]
12+
* @return mixed[]
1313
*/
1414
public function register(): array
1515
{

SlevomatCodingStandard/Sniffs/ControlStructures/YodaComparisonSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class YodaComparisonSniff implements \PHP_CodeSniffer_Sniff
2727
private $stopTokenCodes;
2828

2929
/**
30-
* @return int[]
30+
* @return mixed[]
3131
*/
3232
public function register(): array
3333
{

SlevomatCodingStandard/Sniffs/Exceptions/DeadCatchSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DeadCatchSniff implements \PHP_CodeSniffer_Sniff
1212
const CODE_CATCH_AFTER_THROWABLE_CATCH = 'CatchAfterThrowableCatch';
1313

1414
/**
15-
* @return int[]
15+
* @return mixed[]
1616
*/
1717
public function register(): array
1818
{

0 commit comments

Comments
 (0)