Skip to content

Commit caff6d3

Browse files
committed
Merge branch 'master' into 4.x
2 parents 9d3f691 + 6292af2 commit caff6d3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/Tokenizers/PHP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ class PHP extends Tokenizer
299299
* from the scopeOpeners array. The data is duplicated here to
300300
* save time during parsing of the file.
301301
*
302-
* @var array
302+
* @var array<int|string, int|string>
303303
*/
304304
public $endScopeTokens = [
305305
T_CLOSE_CURLY_BRACKET => T_CLOSE_CURLY_BRACKET,

src/Tokenizers/Tokenizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ abstract class Tokenizer
5555
/**
5656
* A list of tokens that end the scope.
5757
*
58-
* @var array
58+
* @var array<int|string, int|string>
5959
*/
6060
public $endScopeTokens = [];
6161

src/Util/Tokens.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,13 +904,13 @@ final class Tokens
904904

905905

906906
/**
907-
* Given a token, returns the name of the token.
907+
* Given a token constant, returns the name of the token.
908908
*
909909
* If passed an integer, the token name is sourced from PHP's token_name()
910910
* function. If passed a string, it is assumed to be a PHPCS-supplied token
911911
* that begins with PHPCS_T_, so the name is sourced from the token value itself.
912912
*
913-
* @param int|string $token The token to get the name for.
913+
* @param int|string $token The token constant to get the name for.
914914
*
915915
* @return string
916916
*/

tests/Core/AbstractMethodTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ public function getTargetToken($commentString, $tokenType, $tokenContent=null)
172172
*
173173
* @return int
174174
*
175-
* @throws Exception When the test delimiter comment is not found.
176-
* @throws Exception When the test target token is not found.
175+
* @throws \Exception When the test delimiter comment is not found.
176+
* @throws \Exception When the test target token is not found.
177177
*/
178178
public static function getTargetTokenFromFile(File $phpcsFile, $commentString, $tokenType, $tokenContent=null)
179179
{

0 commit comments

Comments
 (0)