Skip to content

Commit c3e5218

Browse files
committed
added PHPStan baseline
1 parent 0e53ed2 commit c3e5218

File tree

2 files changed

+85
-3
lines changed

2 files changed

+85
-3
lines changed

phpstan-baseline.neon

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Method Nette\\PhpGenerator\\ClassType\:\:addTrait\(\) has parameter \$deprecatedParam with no value type specified in iterable type array\.$#'
5+
count: 1
6+
path: src/PhpGenerator/ClassType.php
7+
8+
-
9+
message: '#^Access to an undefined property PhpParser\\Node\:\:\$attrGroups\.$#'
10+
count: 1
11+
path: src/PhpGenerator/Extractor.php
12+
13+
-
14+
message: '#^Access to an undefined property PhpParser\\Node\\Expr\:\:\$value\.$#'
15+
count: 1
16+
path: src/PhpGenerator/Extractor.php
17+
18+
-
19+
message: '#^Method Nette\\PhpGenerator\\Extractor\:\:addCommentAndAttributes\(\) has parameter \$element with no type specified\.$#'
20+
count: 1
21+
path: src/PhpGenerator/Extractor.php
22+
23+
-
24+
message: '#^Property class@anonymous/PhpGenerator/Extractor\.php\:176\:\:\$callback has no type specified\.$#'
25+
count: 1
26+
path: src/PhpGenerator/Extractor.php
27+
28+
-
29+
message: '#^Variable \$trait might not be defined\.$#'
30+
count: 2
31+
path: src/PhpGenerator/Extractor.php
32+
33+
-
34+
message: '#^Call to an undefined method ReflectionClass\<object\>\:\:hasCase\(\)\.$#'
35+
count: 1
36+
path: src/PhpGenerator/Factory.php
37+
38+
-
39+
message: '#^Elseif branch is unreachable because previous condition is always true\.$#'
40+
count: 1
41+
path: src/PhpGenerator/Factory.php
42+
43+
-
44+
message: '#^Method Nette\\PhpGenerator\\Factory\:\:getAttributes\(\) has parameter \$from with no type specified\.$#'
45+
count: 1
46+
path: src/PhpGenerator/Factory.php
47+
48+
-
49+
message: '#^Method Nette\\PhpGenerator\\Factory\:\:getAttributes\(\) return type has no value type specified in iterable type array\.$#'
50+
count: 1
51+
path: src/PhpGenerator/Factory.php
52+
53+
-
54+
message: '#^Method Nette\\PhpGenerator\\Factory\:\:getExtractor\(\) has parameter \$from with no type specified\.$#'
55+
count: 1
56+
path: src/PhpGenerator/Factory.php
57+
58+
-
59+
message: '#^Method Nette\\PhpGenerator\\Factory\:\:getVisibility\(\) has parameter \$from with no type specified\.$#'
60+
count: 1
61+
path: src/PhpGenerator/Factory.php
62+
63+
-
64+
message: '#^Unreachable statement \- code above always terminates\.$#'
65+
count: 1
66+
path: src/PhpGenerator/Factory.php
67+
68+
-
69+
message: '#^Variable \$bodies on left side of \?\?\= always exists and is not nullable\.$#'
70+
count: 1
71+
path: src/PhpGenerator/Factory.php
72+
73+
-
74+
message: '#^Method Nette\\PhpGenerator\\Helpers\:\:formatArgs\(\) has parameter \$args with no value type specified in iterable type array\.$#'
75+
count: 1
76+
path: src/PhpGenerator/Helpers.php
77+
78+
-
79+
message: '#^Method Nette\\PhpGenerator\\Method\:\:from\(\) has parameter \$method with no value type specified in iterable type array\.$#'
80+
count: 1
81+
path: src/PhpGenerator/Method.php

phpstan.neon

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
14
parameters:
2-
level: 5
5+
level: 6
36

47
paths:
58
- src
6-
7-
treatPhpDocTypesAsCertain: false

0 commit comments

Comments
 (0)