Skip to content

Commit eae1b6e

Browse files
committed
Merge branch 'return-false' of https://github.com/glen-84/PHP_CodeSniffer
2 parents 65e88a3 + fcf8680 commit eae1b6e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Files/File.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@ public function getTokensAsString($start, $length, $origContent=false)
21152115
* will not be checked. IE. checking will stop
21162116
* at the previous semi-colon found.
21172117
*
2118-
* @return int|bool
2118+
* @return int|false
21192119
* @see findNext()
21202120
*/
21212121
public function findPrevious(
@@ -2196,7 +2196,7 @@ public function findPrevious(
21962196
* will not be checked. i.e., checking will stop
21972197
* at the next semi-colon found.
21982198
*
2199-
* @return int|bool
2199+
* @return int|false
22002200
* @see findPrevious()
22012201
*/
22022202
public function findNext(
@@ -2404,7 +2404,7 @@ public function findEndOfStatement($start, $ignore=null)
24042404
* If value is omitted, tokens with any value will
24052405
* be returned.
24062406
*
2407-
* @return int|bool
2407+
* @return int|false
24082408
*/
24092409
public function findFirstOnLine($types, $start, $exclude=false, $value=null)
24102410
{
@@ -2491,7 +2491,7 @@ public function hasCondition($stackPtr, $types)
24912491
* @param int $stackPtr The position of the token we are checking.
24922492
* @param int|string $type The type of token to search for.
24932493
*
2494-
* @return int
2494+
* @return int|false
24952495
*/
24962496
public function getCondition($stackPtr, $type)
24972497
{

src/Standards/PSR2/Sniffs/ControlStructures/SwitchDeclarationSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function process(File $phpcsFile, $stackPtr)
208208
* @param int $stackPtr The position to start looking at.
209209
* @param int $end The position to stop looking at.
210210
*
211-
* @return int|bool
211+
* @return int|false
212212
*/
213213
private function findNextCase($phpcsFile, $stackPtr, $end)
214214
{

src/Util/Tokens.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ public static function tokenName($token)
626626
* @param array<int|string> $tokens The token types to get the highest weighted
627627
* type for.
628628
*
629-
* @return int The highest weighted token.
629+
* @return int|false The highest weighted token.
630630
*/
631631
public static function getHighestWeightedToken(array $tokens)
632632
{

0 commit comments

Comments
 (0)