diff --git a/VariableAnalysis/Lib/Helpers.php b/VariableAnalysis/Lib/Helpers.php index 74237b0f..7d3be351 100644 --- a/VariableAnalysis/Lib/Helpers.php +++ b/VariableAnalysis/Lib/Helpers.php @@ -77,7 +77,7 @@ public static function findParenthesisOwner(File $phpcsFile, $stackPtr) { /** * @param File $phpcsFile - * @param int[] $conditions + * @param (int|string)[] $conditions * * @return bool */ @@ -95,7 +95,7 @@ public static function areAnyConditionsAClosure(File $phpcsFile, array $conditio /** - * @param int[] $conditions + * @param (int|string)[] $conditions * * @return bool */ @@ -109,7 +109,7 @@ public static function areAnyConditionsAClass(array $conditions) { } /** - * @param int[] $conditions + * @param (int|string)[] $conditions * * @return bool */ diff --git a/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php b/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php index d0f60fb8..47556a9c 100644 --- a/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php +++ b/VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php @@ -105,7 +105,7 @@ class VariableAnalysisSniff implements Sniff { public $allowUnusedForeachVariables = true; /** - * @return int[] + * @return (int|string)[] */ public function register() { return [