Skip to content

Commit

Permalink
Clean up PHPStan ignore errors (#2681)
Browse files Browse the repository at this point in the history
* Clean up PHPStan ignore errors

* Clean up PHPStan ignore errors
  • Loading branch information
samsonasik committed Jul 19, 2022
1 parent a66e653 commit ddb08dc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ parameters:
message: '#Function "dump_node\(\)" cannot be used/left in the code#'
path: src/functions/node_helper.php

# union false positive
- '#Method Rector\\Comments\\CommentRemover\:\:removeFromNode\(\) has parameter \$node with no value type specified in iterable type array#'

# class-string miss match
- '#Parameter \#1 \$classes of method Rector\\BetterPhpDocParser\\PhpDocInfo\\PhpDocInfo<PHPStan\\PhpDocParser\\Ast\\Node\>\:\:getByAnnotationClasses\(\) expects array<class\-string\>, array<int, string\> given#'
- '#Parameter \#1 \$classes of method Rector\\BetterPhpDocParser\\PhpDocInfo\\PhpDocInfo<TNode of PHPStan\\PhpDocParser\\Ast\\Node\>\:\:getByAnnotationClasses\(\) expects array<class\-string\>, array<string\> given#'
Expand Down Expand Up @@ -386,8 +383,6 @@ parameters:
- rules/Composer/Application/FileProcessor/ComposerFileProcessor.php
- src/Contract/Processor/FileProcessorInterface.php
- packages/Parallel/Application/ParallelFileProcessor.php
# tokens
- packages/BetterPhpDocParser/ValueObject/Parser/BetterTokenIterator.php

# skipped on purpose, as ctor overrie
- '#Rector\\StaticTypeMapper\\ValueObject\\Type\\SimpleStaticType\:\:__construct\(\) does not call parent constructor from PHPStan\\Type\\StaticType#'
Expand Down Expand Up @@ -664,12 +659,6 @@ parameters:

- '#Class method ".+\(\)" is never used#'

-
message: '#Parameters should use "(.*?)" types as the only types passed to this method#'
paths:
- rules/DeadCode/NodeManipulator/LivingCodeManipulator.php
- src/NodeManipulator/PropertyManipulator.php

# regex re-validation
-
message: '#Call to static method Webmozart\\Assert\\Assert\:\:allString\(\) with array<string> will always evaluate to true#'
Expand Down

0 comments on commit ddb08dc

Please sign in to comment.