From cd54b901e5c689b3fde27c8870de6fce3e75b9cb Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 19 Jan 2020 20:18:20 +0100 Subject: [PATCH] Documentation: minor fixes Token constants can be integers (native PHP tokens) or strings (PHPCS native tokens and backfilled PHP tokens). --- VariableAnalysis/Lib/Helpers.php | 6 +++--- .../Sniffs/CodeAnalysis/VariableAnalysisSniff.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 [