Skip to content

Commit 2798661

Browse files
jrfnlsirbrillig
authored andcommitted
Documentation: minor fixes (#123)
Token constants can be integers (native PHP tokens) or strings (PHPCS native tokens and backfilled PHP tokens).
1 parent 891b3e1 commit 2798661

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

VariableAnalysis/Lib/Helpers.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static function findParenthesisOwner(File $phpcsFile, $stackPtr) {
7777

7878
/**
7979
* @param File $phpcsFile
80-
* @param int[] $conditions
80+
* @param (int|string)[] $conditions
8181
*
8282
* @return bool
8383
*/
@@ -95,7 +95,7 @@ public static function areAnyConditionsAClosure(File $phpcsFile, array $conditio
9595

9696

9797
/**
98-
* @param int[] $conditions
98+
* @param (int|string)[] $conditions
9999
*
100100
* @return bool
101101
*/
@@ -109,7 +109,7 @@ public static function areAnyConditionsAClass(array $conditions) {
109109
}
110110

111111
/**
112-
* @param int[] $conditions
112+
* @param (int|string)[] $conditions
113113
*
114114
* @return bool
115115
*/

VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class VariableAnalysisSniff implements Sniff {
105105
public $allowUnusedForeachVariables = true;
106106

107107
/**
108-
* @return int[]
108+
* @return (int|string)[]
109109
*/
110110
public function register() {
111111
return [

0 commit comments

Comments
 (0)