Skip to content

Commit

Permalink
Documentation: minor fixes
Browse files Browse the repository at this point in the history
Token constants can be integers (native PHP tokens) or strings (PHPCS native tokens and backfilled PHP tokens).
  • Loading branch information
jrfnl committed Jan 19, 2020
1 parent 891b3e1 commit cd54b90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions VariableAnalysis/Lib/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function findParenthesisOwner(File $phpcsFile, $stackPtr) {

/**
* @param File $phpcsFile
* @param int[] $conditions
* @param (int|string)[] $conditions
*
* @return bool
*/
Expand All @@ -95,7 +95,7 @@ public static function areAnyConditionsAClosure(File $phpcsFile, array $conditio


/**
* @param int[] $conditions
* @param (int|string)[] $conditions
*
* @return bool
*/
Expand All @@ -109,7 +109,7 @@ public static function areAnyConditionsAClass(array $conditions) {
}

/**
* @param int[] $conditions
* @param (int|string)[] $conditions
*
* @return bool
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class VariableAnalysisSniff implements Sniff {
public $allowUnusedForeachVariables = true;

/**
* @return int[]
* @return (int|string)[]
*/
public function register() {
return [
Expand Down

0 comments on commit cd54b90

Please sign in to comment.