Skip to content

Commit

Permalink
updated phpstan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 13, 2022
1 parent 9c200fa commit d43ee73
Showing 1 changed file with 16 additions and 21 deletions.
37 changes: 16 additions & 21 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
parameters:
ignoreErrors:
-
message: '#^Match expression does not handle remaining value\: true$#'
count: 1
path: src/PhpGenerator/ClassLike.php

-
message: '#^Method Nette\\PhpGenerator\\ClassType\:\:addTrait\(\) has parameter \$deprecatedParam with no value type specified in iterable type array\.$#'
count: 1
Expand All @@ -15,16 +10,6 @@ parameters:
count: 1
path: src/PhpGenerator/EnumType.php

-
message: '#^Access to an undefined property PhpParser\\Node\:\:\$attrGroups\.$#'
count: 1
path: src/PhpGenerator/Extractor.php

-
message: '#^Access to an undefined property PhpParser\\Node\\Expr\:\:\$value\.$#'
count: 1
path: src/PhpGenerator/Extractor.php

-
message: '#^Call to an undefined method Nette\\PhpGenerator\\ClassLike\:\:addConstant\(\)\.$#'
count: 1
Expand All @@ -45,13 +30,18 @@ parameters:
count: 1
path: src/PhpGenerator/Extractor.php

-
message: '#^Call to an undefined method Nette\\PhpGenerator\\FunctionLike\:\:addPromotedParameter\(\)\.$#'
count: 1
path: src/PhpGenerator/Extractor.php

-
message: '#^Method Nette\\PhpGenerator\\Extractor\:\:addCommentAndAttributes\(\) has parameter \$element with no type specified\.$#'
count: 1
path: src/PhpGenerator/Extractor.php

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

Expand All @@ -65,6 +55,11 @@ parameters:
count: 1
path: src/PhpGenerator/Factory.php

-
message: '#^Call to an undefined method ReflectionClass\<object\>\:\:isReadOnly\(\)\.$#'
count: 1
path: src/PhpGenerator/Factory.php

-
message: '#^Elseif branch is unreachable because previous condition is always true\.$#'
count: 1
Expand All @@ -90,11 +85,6 @@ parameters:
count: 1
path: src/PhpGenerator/Factory.php

-
message: '#^Parameter \#1 \$name of method Nette\\PhpGenerator\\ClassType\:\:setExtends\(\) expects string\|null, array\<int, string\> given\.$#'
count: 1
path: src/PhpGenerator/Factory.php

-
message: '#^Unreachable statement \- code above always terminates\.$#'
count: 1
Expand All @@ -115,6 +105,11 @@ parameters:
count: 1
path: src/PhpGenerator/Method.php

-
message: '#^Method Nette\\PhpGenerator\\Printer\:\:printDocComment\(\) has parameter \$commentable with no type specified\.$#'
count: 1
path: src/PhpGenerator/Printer.php

-
message: '#^Method Nette\\PhpGenerator\\TraitType\:\:addTrait\(\) has parameter \$deprecatedParam with no value type specified in iterable type array\.$#'
count: 1
Expand Down

0 comments on commit d43ee73

Please sign in to comment.