@@ -3,15 +3,61 @@ parameters:
3
3
paths :
4
4
- src
5
5
- tests
6
- featureToggles :
7
- readOnlyByPhpDoc : true
8
6
9
7
ignoreErrors :
10
- - ' #^Constructor of class PhpStaticAnalysis\\Attributes\\[a-zA-Z ]+ has an unused parameter \$[a-zA-Z ]+\.$ #'
11
- - '#^ (Function|Method ) [a-zA-Z\ : ]+\ (\ ) return type has no value type specified in iterable type array.$ #'
12
- - ' #^Parameter \ #1 \.*\$[a-zA-Z ]+ of attribute class PhpStaticAnalysis\\Attributes\\[a-zA-Z ]+ constructor expects string , int given.$ #'
13
- - ' #^PHPDoc tag @[a-z\-A-Z ]+ has invalid value \ (\ ): Unexpected token "\\n " , expected type at offset [0-9 ]+$ #'
14
- - ' #^Attribute class PhpStaticAnalysis\\Attributes\\[a-zA-Z ]+ constructor invoked with [0-9 ]+ parameter (s )? , [0-9 ]+ required.$ #'
15
- - ' #^Attribute class PhpStaticAnalysis\\Attributes\\[a-zA-Z ]+ is not repeatable but is already present above the (property|method ).$ #'
16
- - ' #^Method [a-zA-Z\ : ]+\ (\ ) has parameter \$[a-zA-Z ]+ with generic class [a-zA-Z ]+ but does not specify its types : [a-zA-Z ]+$ #'
17
- - ' #^PHPDoc tag @phpstan-self-out contains generic type [a-zA-Z ]+<[a-zA-Z ]+> but class [a-zA-Z ]+ is not generic.$ #'
8
+ -
9
+ identifier : method.impossibleType
10
+ paths :
11
+ - tests/AssertIfFalseTest.php
12
+
13
+ -
14
+ identifier : function.impossibleType
15
+ paths :
16
+ - tests/AssertIfFalseTest.php
17
+
18
+ -
19
+ identifier : assert.alreadyNarrowedType
20
+ paths :
21
+ - tests/AssertIfFalseTest.php
22
+ - tests/AssertIfTrueTest.php
23
+ - tests/AssertTest.php
24
+
25
+ -
26
+ identifier : method.alreadyNarrowedType
27
+ paths :
28
+ - tests/AssertIfTrueTest.php
29
+
30
+ -
31
+ identifier : function.alreadyNarrowedType
32
+ paths :
33
+ - tests/AssertIfTrueTest.php
34
+
35
+ -
36
+ identifier : constructor.unusedParameter
37
+ paths :
38
+ - src/*
39
+
40
+ -
41
+ identifier : missingType.iterableValue
42
+ paths :
43
+ - tests/*
44
+
45
+ -
46
+ identifier : missingType.generics
47
+ paths :
48
+ - tests/*
49
+
50
+ -
51
+ identifier : phpDoc.parseError
52
+ paths :
53
+ - tests/*
54
+
55
+ -
56
+ identifier : possiblyImpure.methodCall
57
+ paths :
58
+ - tests/PureTest.php
59
+
60
+ -
61
+ identifier : possiblyImpure.new
62
+ paths :
63
+ - tests/PureTest.php
0 commit comments