Skip to content

Commit

Permalink
Clean up PHPStan ignore error messages (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Oct 5, 2021
1 parent dcf830f commit 687f9e9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ parameters:

- '#PhpParser\\Node\\Expr\\Error\|PhpParser\\Node\\Expr\\Variable given#'

-
message: '#Use `\$class\-\>namespaceName` instead of `\$class\-\>name` that only returns short class name#'
paths:
- rules/CodingStyle/Naming/NameRenamer.php
- packages/NodeNameResolver/NodeNameResolver/ClassNameResolver.php

-
message: '#Property with protected modifier is not allowed\. Use interface contract method instead#'
paths:
Expand Down Expand Up @@ -499,13 +493,9 @@ parameters:
- src/Application/VersionResolver.php #16
- utils/compiler/src/Unprefixer.php #9

# false positive - class_exists check is right above it
- '#Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string<Rector\\RectorInstaller\\GeneratedConfig\>\|Rector\\RectorInstaller\\GeneratedConfig, string given#'

# waits for phpstan upgrade to php-parser 4.13
- '#Access to an undefined property PhpParser\\Node\\Arg\|PhpParser\\Node\\VariadicPlaceholder\:\:\$value#'
- '#(.*?), array<PhpParser\\Node\\Arg\|PhpParser\\Node\\VariadicPlaceholder\> given#'
- '#(.*?) but returns array<int, PhpParser\\Node\\Arg\|PhpParser\\Node\\VariadicPlaceholder\>#'

- '#Parameter "\w+" cannot have default value#'

Expand Down

0 comments on commit 687f9e9

Please sign in to comment.