Skip to content

Commit 16ea6c7

Browse files
authored
PHPStan update (#247)
1 parent bacfd49 commit 16ea6c7

File tree

7 files changed

+26
-27
lines changed

7 files changed

+26
-27
lines changed

.php_cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ return PhpCsFixer\Config::create()
153153
'coversNothing',
154154
'dataProvider',
155155
'deprecated',
156+
'implements',
156157
'internal',
157158
'param',
158159
'return',

dev-tools/composer.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@
1616
"squizlabs/php_codesniffer": "^3.5.4",
1717
"vimeo/psalm": "^3.9.3"
1818
},
19-
"autoload-dev": {
20-
"psr-4": {
21-
"PhpCsFixerCustomFixers\\": "../src",
22-
"PhpCsFixerCustomFixersDev\\": "./src",
23-
"Tests\\": "../tests"
24-
}
25-
},
2619
"scripts": {
2720
"analyse": [
2821
"composer validate --strict --working-dir=..",

dev-tools/composer.lock

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

dev-tools/infection.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@
5454
]
5555
},
5656
"TrueValue": false
57-
}
57+
},
58+
"bootstrap": "../vendor/autoload.php"
5859
}

dev-tools/phpstan.neon

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
parameters:
2-
level: max
3-
paths:
4-
- ../src
5-
checkGenericClassInNonGenericObjectType: false
2+
autoload_files:
3+
- ../vendor/autoload.php
64
ignoreErrors:
75
- '#^Method PhpCsFixerCustomFixers\\Fixer\\[a-zA-Z]+::configure\(\) has parameter \$configuration with no value type specified in iterable type array\.$#'
86
- '#^Parameter \#\d+ \$[a-zA-Z]+ of method PhpCsFixer\\Tokenizer\\Tokens::insertAt\(\) expects#'
97
- '#^Parameter \#\d+ \$[a-zA-Z]+ of method PhpCsFixer\\Tokenizer\\Tokens::overrideRange\(\) expects#'
108
- '#has parameter \$tokens with no value type specified in iterable type PhpCsFixer\\Tokenizer\\Tokens\.#'
9+
level: max
10+
paths:
11+
- ../src
1112

1213
includes:
1314
- ./vendor/phpstan/phpstan/conf/bleedingEdge.neon

dev-tools/readme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4-
require_once __DIR__ . '/vendor/autoload.php';
4+
require_once __DIR__ . '/../vendor/autoload.php';
55

66
$application = new Symfony\Component\Console\Application();
77
$command = new PhpCsFixerCustomFixersDev\Readme\ReadmeCommand('readme');

src/Fixers.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Symfony\Component\Finder\Finder;
99
use Symfony\Component\Finder\SplFileInfo;
1010

11+
/**
12+
* @implements \IteratorAggregate<FixerInterface>
13+
*/
1114
final class Fixers implements \IteratorAggregate
1215
{
1316
/**

0 commit comments

Comments
 (0)