Skip to content

Commit

Permalink
fix few static errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 23, 2024
1 parent 3bb8eff commit f2fe6dc
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ includes:
parameters:
level: 8

# reportUnmatchedIgnoredErrors: false
reportUnmatchedIgnoredErrors: false

# requires exact closure types
checkMissingCallableSignature: true
Expand Down Expand Up @@ -39,27 +39,6 @@ parameters:

- '#Calling PHPStan\\Reflection\\Native\\NativeFunctionReflection\:\:getName\(\) is not covered by backward compatibility promise\. The method might change in a minor PHPStan version#'

-
message: '#New objects with "\$functionLikeReflection" name are overridden\. This can lead to unwanted bugs, please pick a different name to avoid it#'
path: rules/DowngradePhp80/NodeAnalyzer/UnnamedArgumentResolver.php

# nullable correction type
-
message: '#New objects with "\$parentReturnTypeNode" name are overridden\. This can lead to unwanted bugs, please pick a different name to avoid it#'
path: rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php

# cleaning expr
-
message: '#New objects with "\$bitwiseOr" name are overridden\. This can lead to unwanted bugs, please pick a different name to avoid it#'
path: rules/DowngradePhp72/NodeManipulator/BitwiseFlagCleaner.php

- '#Method "decorateReturnWithSpecificType\(\)" returns bool type, so the name should start with is/has/was#'
- '#Method "decorateParamWithSpecificType\(\)" returns bool type, so the name should start with is/has/was#'

-
message: '#New objects with "\$returnType" name are overridden\. This can lead to unwanted bugs, please pick a different name to avoid it#'
path: src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php

- '#Parameter \#3 \$stmt of method Rector\\DowngradePhp72\\Rector\\FuncCall\\DowngradePregUnmatchedAsNullConstantRector\:\:processReplace\(\) expects PhpParser\\Node\\Stmt, PhpParser\\Node given#'

- '#(.*?)\:\:refactor\(\) should return array<PhpParser\\Node\\Stmt>\|PhpParser\\Node\\Stmt\\ClassConst\|null but returns array<PhpParser\\Node\\Stmt>\|PhpParser\\Node\\Stmt\|null#'
Expand Down

0 comments on commit f2fe6dc

Please sign in to comment.