Skip to content

Commit 9a79c47

Browse files
authored
Update dev tools (#805)
1 parent 5dca58c commit 9a79c47

File tree

8 files changed

+78
-72
lines changed

8 files changed

+78
-72
lines changed

.dev-tools/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"require": {
33
"php": "^8.1",
4-
"ergebnis/composer-normalize": "^2.28.1",
4+
"ergebnis/composer-normalize": "^2.28.3",
55
"infection/infection": "^0.26.13",
6-
"kubawerlos/composer-smaller-lock": "^1.0.0",
6+
"kubawerlos/composer-smaller-lock": "^1.0.1",
77
"kubawerlos/php-cs-fixer-config": "^3.11.0",
88
"kubawerlos/types-checker": "^2.2.0",
9-
"maglnet/composer-require-checker": "^4.0.0",
9+
"maglnet/composer-require-checker": "^4.1.0",
1010
"mi-schi/phpmd-extension": "^4.3.0",
1111
"phpmd/phpmd": "^2.12.0",
1212
"phpstan/extension-installer": "^1.1.0",
13-
"phpstan/phpstan": "^1.8.0",
13+
"phpstan/phpstan": "^1.8.2",
1414
"phpstan/phpstan-phpunit": "^1.1.1",
1515
"phpstan/phpstan-strict-rules": "^1.3.0",
1616
"squizlabs/php_codesniffer": "^3.7.1",
17-
"vimeo/psalm": "^4.24.0"
17+
"vimeo/psalm": "^4.25.0"
1818
},
1919
"autoload": {
2020
"psr-4": {

.dev-tools/composer.lock

Lines changed: 64 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.dev-tools/phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ parameters:
44
excludePaths:
55
- ./src/Readme
66
ignoreErrors:
7+
- '~^Parameter #1 \$type of method PhpCsFixer\\Tokenizer\\Tokens::findBlock(Start|End)\(\) expects [\d\|]+, int given\.$~'
8+
- '~^Parameter #1 \$token of class PhpCsFixer\\Tokenizer\\Token constructor expects array\{int, string\}\|string, array\{int\|null, string\} given\.$~'
79
- message: '#^Call to an undefined method PhpCsFixer\\Fixer\\FixerInterface::[a-zA-Z]+\(\)\.$#'
810
path: ../tests
911
- message: '#^Call to function method_exists\(\) with ''Tests\\\\.*'' and ''.*'' will always evaluate to true\.$#'

.dev-tools/psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
</stubs>
2020

2121
<issueHandlers>
22+
<ArgumentTypeCoercion errorLevel='suppress' />
2223
<InternalClass errorLevel='suppress' />
2324
<InternalMethod errorLevel='suppress' />
2425
<MissingConstructor errorLevel='suppress' />

src/Fixer/PhpdocVarAnnotationToAssertFixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
6363
continue;
6464
}
6565

66+
/** @var null|list<Token> $assertTokens */
6667
$assertTokens = $this->getAssertTokens($tokens, $docCommentIndex, $tokens[$variableIndex]->getContent());
6768
if ($assertTokens === null) {
6869
continue;

0 commit comments

Comments
 (0)