Skip to content

Commit

Permalink
Clean up ignore phpstan errors (#6630)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Dec 26, 2024
1 parent ed433a8 commit c3989ab
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,6 @@ parameters:
message: '#Cannot call method (.*?)\(\) on (.*?)\\ProcessPool\|null#'
path: src/Parallel/Application/ParallelFileProcessor.php

-
message: '#Use value object over return of values#'
paths:
- src/BetterPhpDocParser/PhpDocParser/StaticDoctrineAnnotationParser/ArrayParser.php
- rules/EarlyReturn/Rector/If_/ChangeNestedIfsToEarlyReturnRector.php
- rules/Php70/EregToPcreTransformer.php

# internal reflection
- '#Instead of "new ClassReflection\(\)" use ReflectionProvider service or "\(new PHPStan\\Reflection\\ClassReflection\(<desired_type>\)\)" for static reflection to work#'

Expand Down Expand Up @@ -249,12 +242,6 @@ parameters:
# for cache
- src/Testing/PHPUnit/AbstractRectorTestCase.php

-
message: '#Interface "(.*?)" has only single implementer\. Consider using the class directly as there is no point in using the interface#'
paths:
# marker interface
- src/Contract/PhpParser/Node/StmtsAwareInterface.php

# generated class in /vendor
-
message: '#Offset (.*?) on null on left side of \?\? does not exist#'
Expand Down Expand Up @@ -283,9 +270,6 @@ parameters:
message: '#Fetching (deprecated )?class constant (.*?) of (deprecated )?class (Rector\\Set\\ValueObject\\DowngradeLevelSetList|Rector\\Symfony\\Set\\(.*?))#'
path: src/Configuration/RectorConfigBuilder.php

# marker interface to be used ad-hoc
- '#Interface "Rector\\Configuration\\Deprecation\\Contract\\DeprecatedInterface" has only single implementer#'

# deprecated
- '#Register "Rector\\Php80\\Rector\\FunctionLike\\MixedTypeRector" service to "php80\.php" config set#'

Expand Down Expand Up @@ -341,5 +325,3 @@ parameters:

# list vs array
- '#Parameter (.*?) expects list<(.*?)>, array<(.*?)> given#'
- '#should return list<(.*?)>\|null but returns non\-empty\-array<(.*?)>\|null#'

0 comments on commit c3989ab

Please sign in to comment.