Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 19, 2023
1 parent d81c73f commit 1e7a468
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"phpstan/phpstan": "^1.10.19",
"rector/rector": "^0.17.1",
"symplify/easy-ci": "^11.2",
"symplify/phpstan-extensions": "^11.2"
"symplify/phpstan-extensions": "^11.2",
"tomasvotruba/unused-public": "^0.1.12"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ parameters:
path: tests/bootstrap.php
message: '#Instantiated class PHP_CodeSniffer\\Util\\Tokens not found#'

- '#Cannot call method (equals|isGivenKind|isComment|isWhitespace|getContent)\(\) on PhpCsFixer\\Tokenizer\\Token\|null#'
#- '#Cannot call method (equals|isGivenKind|isComment|isWhitespace|getContent)\(\) on PhpCsFixer\\Tokenizer\\Token\|null#'
- '#Constant T_OPEN_CURLY_BRACKET|T_START_NOWDOC not found#'
- '#Parameter \#1 \$index of method PhpCsFixer\\Tokenizer\\Tokens\:\:getNextTokenOfKind\(\) expects int, int\|null given#'
3 changes: 0 additions & 3 deletions src/TokenAnalyzer/Naming/MethodNameResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
use PhpCsFixer\Tokenizer\Token;
use PhpCsFixer\Tokenizer\Tokens;

/**
* @api
*/
final class MethodNameResolver
{
/**
Expand Down
2 changes: 1 addition & 1 deletion src/TokenRunner/Traverser/ArrayBlockInfoFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function findArrayOpenerBlockInfos(Tokens $tokens): array

/**
* @param Tokens<Token> $tokens
* @return Token[]|null[]
* @return Token[]
*/
private function reverseTokens(Tokens $tokens): array
{
Expand Down

0 comments on commit 1e7a468

Please sign in to comment.