Skip to content

Commit 6292af2

Browse files
authored
Docs: various minor fixes (#1037)
* Docs: various minor fixes * Docs: and some more minor fixes --------- Co-authored-by: jrfnl <[email protected]>
1 parent 1229916 commit 6292af2

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
@@ -291,7 +291,7 @@ class PHP extends Tokenizer
291291
* from the scopeOpeners array. The data is duplicated here to
292292
* save time during parsing of the file.
293293
*
294-
* @var array
294+
* @var array<int|string, int|string>
295295
*/
296296
public $endScopeTokens = [
297297
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
@@ -54,7 +54,7 @@ abstract class Tokenizer
5454
/**
5555
* A list of tokens that end the scope.
5656
*
57-
* @var array
57+
* @var array<int|string, int|string>
5858
*/
5959
public $endScopeTokens = [];
6060

src/Util/Tokens.php

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

753753

754754
/**
755-
* Given a token, returns the name of the token.
755+
* Given a token constant, returns the name of the token.
756756
*
757757
* If passed an integer, the token name is sourced from PHP's token_name()
758758
* function. If passed a string, it is assumed to be a PHPCS-supplied token
759759
* that begins with PHPCS_T_, so the name is sourced from the token value itself.
760760
*
761-
* @param int|string $token The token to get the name for.
761+
* @param int|string $token The token constant to get the name for.
762762
*
763763
* @return string
764764
*/

tests/Core/AbstractMethodUnitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ public function getTargetToken($commentString, $tokenType, $tokenContent=null)
190190
*
191191
* @return int
192192
*
193-
* @throws Exception When the test delimiter comment is not found.
194-
* @throws Exception When the test target token is not found.
193+
* @throws \Exception When the test delimiter comment is not found.
194+
* @throws \Exception When the test target token is not found.
195195
*/
196196
public static function getTargetTokenFromFile(File $phpcsFile, $commentString, $tokenType, $tokenContent=null)
197197
{

0 commit comments

Comments
 (0)