[PHPStan] Clean up PHPStan ignore errors (#1755)

This commit is contained in:
Abdul Malik Ikhsan 2022-02-01 12:47:02 +07:00 committed by GitHub
parent c5482e2d43
commit a51b81cf2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,11 +417,6 @@ parameters:
paths:
- packages/NodeTypeResolver/DependencyInjection/PHPStanServicesFactory.php
-
message: '#Method Rector\\VersionBonding\\PhpVersionedFilter\:\:filter\(\) should return array<T of Rector\\Core\\Contract\\Rector\\RectorInterface\> but returns array<int, \(Rector\\VersionBonding\\Contract\\MinPhpVersionInterface&T of Rector\\Core\\Contract\\Rector\\RectorInterface\)\|T of Rector\\Core\\Contract\\Rector\\RectorInterface\>#'
paths:
- packages/VersionBonding/PhpVersionedFilter.php
# use lighter service for performance reasons
-
path: packages/Caching/ValueObject/Storage/FileCacheStorage.php
@ -597,18 +592,10 @@ parameters:
# impossible to validate json string is a class-string
- '#Parameter \#1 \$rectorClass of class Rector\\ChangesReporting\\ValueObject\\RectorWithLineChange constructor expects class\-string<Rector\\Core\\Contract\\Rector\\RectorInterface\>\|Rector\\Core\\Contract\\Rector\\RectorInterface, string given#'
# will be solved once https://github.com/phpstan/phpstan-src/pull/914 gets released
-
message: '#sprintf\(\) call mask types does not match provided arguments types#'
paths:
- src/Exception/ShouldNotHappenException.php
-
message: '#Only booleans are allowed in an if condition, array\|null given#'
path: rules/Naming/Naming/PropertyNaming.php
- '#Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string<Rector\\RectorInstaller\\GeneratedConfig\>\|Rector\\RectorInstaller\\GeneratedConfig, string given#'
-
path: src/Bootstrap/ExtensionConfigResolver.php
message: '#Offset (.*?)includes(.*?) always exists and is not nullable#'