diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index dd03b4fa..c826bc8e 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -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 @@ -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 @@ -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 @@ -65,6 +55,11 @@ parameters: count: 1 path: src/PhpGenerator/Factory.php + - + message: '#^Call to an undefined method ReflectionClass\\:\:isReadOnly\(\)\.$#' + count: 1 + path: src/PhpGenerator/Factory.php + - message: '#^Elseif branch is unreachable because previous condition is always true\.$#' count: 1 @@ -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\ given\.$#' - count: 1 - path: src/PhpGenerator/Factory.php - - message: '#^Unreachable statement \- code above always terminates\.$#' count: 1 @@ -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