Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 6827e09

Browse files
committed
Update PHPStan
1 parent 90f9959 commit 6827e09

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"ergebnis/composer-normalize": "^2.13.2",
2222
"php-parallel-lint/php-parallel-lint": "^1.2.0",
2323
"phpstan/extension-installer": "^1.1",
24-
"phpstan/phpstan": "^0.12.71",
25-
"phpstan/phpstan-phpunit": "^0.12.17",
24+
"phpstan/phpstan": "1.2.0",
25+
"phpstan/phpstan-phpunit": "^1.0.0",
2626
"phpunit/phpunit": "^9.5.2"
2727
},
2828
"config": {

src/Fixer/SpecifyArgSeparatorFixer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,8 @@ private function fixFunction(Tokens $tokens, int $functionIndex): void
117117
$tokensToInsert[] = new Token([T_WHITESPACE, ' ']);
118118
$tokensToInsert[] = new Token([T_STRING, "'&'"]);
119119

120-
if (!empty($tokensToInsert)) {
121-
$beforeCloseParenthesisIndex = $tokens->getPrevNonWhitespace($closeParenthesisIndex);
122-
$tokens->insertAt($beforeCloseParenthesisIndex + 1, $tokensToInsert);
123-
}
120+
$beforeCloseParenthesisIndex = $tokens->getPrevNonWhitespace($closeParenthesisIndex);
121+
$tokens->insertAt($beforeCloseParenthesisIndex + 1, $tokensToInsert);
124122
}
125123

126124
/**

0 commit comments

Comments
 (0)