Skip to content

Commit 51181d4

Browse files
committed
updated phpstan baseline
1 parent a8d6abe commit 51181d4

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

phpstan-baseline.neon

+16-21
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: '#^Match expression does not handle remaining value\: true$#'
5-
count: 1
6-
path: src/PhpGenerator/ClassLike.php
7-
83
-
94
message: '#^Method Nette\\PhpGenerator\\ClassType\:\:addTrait\(\) has parameter \$deprecatedParam with no value type specified in iterable type array\.$#'
105
count: 1
@@ -15,16 +10,6 @@ parameters:
1510
count: 1
1611
path: src/PhpGenerator/EnumType.php
1712

18-
-
19-
message: '#^Access to an undefined property PhpParser\\Node\:\:\$attrGroups\.$#'
20-
count: 1
21-
path: src/PhpGenerator/Extractor.php
22-
23-
-
24-
message: '#^Access to an undefined property PhpParser\\Node\\Expr\:\:\$value\.$#'
25-
count: 1
26-
path: src/PhpGenerator/Extractor.php
27-
2813
-
2914
message: '#^Call to an undefined method Nette\\PhpGenerator\\ClassLike\:\:addConstant\(\)\.$#'
3015
count: 1
@@ -45,13 +30,18 @@ parameters:
4530
count: 1
4631
path: src/PhpGenerator/Extractor.php
4732

33+
-
34+
message: '#^Call to an undefined method Nette\\PhpGenerator\\FunctionLike\:\:addPromotedParameter\(\)\.$#'
35+
count: 1
36+
path: src/PhpGenerator/Extractor.php
37+
4838
-
4939
message: '#^Method Nette\\PhpGenerator\\Extractor\:\:addCommentAndAttributes\(\) has parameter \$element with no type specified\.$#'
5040
count: 1
5141
path: src/PhpGenerator/Extractor.php
5242

5343
-
54-
message: '#^Property class@anonymous/PhpGenerator/Extractor\.php\:176\:\:\$callback has no type specified\.$#'
44+
message: '#^Property class@anonymous/PhpGenerator/Extractor\.php\:175\:\:\$callback has no type specified\.$#'
5545
count: 1
5646
path: src/PhpGenerator/Extractor.php
5747

@@ -65,6 +55,11 @@ parameters:
6555
count: 1
6656
path: src/PhpGenerator/Factory.php
6757

58+
-
59+
message: '#^Call to an undefined method ReflectionClass\<object\>\:\:isReadOnly\(\)\.$#'
60+
count: 1
61+
path: src/PhpGenerator/Factory.php
62+
6863
-
6964
message: '#^Elseif branch is unreachable because previous condition is always true\.$#'
7065
count: 1
@@ -90,11 +85,6 @@ parameters:
9085
count: 1
9186
path: src/PhpGenerator/Factory.php
9287

93-
-
94-
message: '#^Parameter \#1 \$name of method Nette\\PhpGenerator\\ClassType\:\:setExtends\(\) expects string\|null, array\<int, string\> given\.$#'
95-
count: 1
96-
path: src/PhpGenerator/Factory.php
97-
9888
-
9989
message: '#^Unreachable statement \- code above always terminates\.$#'
10090
count: 1
@@ -115,6 +105,11 @@ parameters:
115105
count: 1
116106
path: src/PhpGenerator/Method.php
117107

108+
-
109+
message: '#^Method Nette\\PhpGenerator\\Printer\:\:printDocComment\(\) has parameter \$commentable with no type specified\.$#'
110+
count: 1
111+
path: src/PhpGenerator/Printer.php
112+
118113
-
119114
message: '#^Method Nette\\PhpGenerator\\TraitType\:\:addTrait\(\) has parameter \$deprecatedParam with no value type specified in iterable type array\.$#'
120115
count: 1

0 commit comments

Comments
 (0)