From a2f282a23b676991163802efcf2cd8bd696c6ec9 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 5 Feb 2022 12:53:35 +0100 Subject: [PATCH] remove fixed phpstan errors --- phpstan.neon | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index d42738d2887..95a57ba4d96 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -506,10 +506,6 @@ parameters: - '#Rector\\BetterPhpDocParser\\ValueObject\\Parser\\BetterTokenIterator\:\:__construct\(\) does not call parent constructor from PHPStan\\PhpDocParser\\Parser\\TokenIterator#' - '#Rector\\Comments\\NodeTraverser\\CommentRemovingNodeTraverser\:\:__construct\(\) does not call parent constructor from PhpParser\\NodeTraverser#' - # always Expr or mixed nested array - - '#Method Rector\\PhpAttribute\\Contract\\AnnotationToAttributeMapperInterface\:\:map\(\) return type has no value type specified in iterable type array#' - - '#Method Rector\\PhpAttribute\\AnnotationToAttributeMapper\\(.*?)AnnotationToAttributeMapper\:\:map\(\) return type has no value type specified in iterable type array#' - # confused generics - '#Return type \(array\>\) of method Rector\\NodeTypeResolver\\NodeTypeResolver\\(.*?)TypeResolver\:\:getNodeClasses\(\) should be covariant with return type \(array\>\) of method Rector\\NodeTypeResolver\\Contract\\NodeTypeResolverInterface\:\:getNodeClasses\(\)#' @@ -599,22 +595,11 @@ parameters: # mapper re-use - '#Parameter \#1 \$type of method Rector\\PHPStanStaticTypeMapper\\TypeMapper\\ObjectWithoutClassTypeMapper\:\:mapToPhpParserNode\(\) expects PHPStan\\Type\\ObjectWithoutClassType, PHPStan\\Type\\Accessory\\Has(Property|Method)Type given#' - # false positive - - '#Method Rector\\VersionBonding\\PhpVersionedFilter\:\:filter\(\) should return array but returns array#' - - # fix later - - '#Parameter \#1 \$value of class PhpParser\\Node\\Expr\\ArrayItem constructor expects PhpParser\\Node\\Expr, array\|PhpParser\\Node\\Expr\|string given#' - - '#Parameter \#2 \$key of class PhpParser\\Node\\Expr\\ArrayItem constructor expects PhpParser\\Node\\Expr\|null, array\|PhpParser\\Node\\Expr\|string\|null given#' - # broken on CI - message: '#Anonymous variables in a method call can lead to false dead methods\. Make sure the variable type is known#' path: packages/NodeNestingScope/FlowOfControlLocator.php - - - message: '#This property type might be inlined to PHP\. Do you have confidence it is correct\? Put it here#' - path: packages/PhpAttribute/Printer/PhpAttributeGroupFactory.php - - message: '#Array with keys is not allowed\. Use value object to pass data instead#' path: packages/PhpAttribute/Printer/PhpAttributeGroupFactory.php