diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index fe5f8730..e2e011fd 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -20,8 +20,3 @@ parameters: count: 1 path: src/Functions/NoNullableReturnTypeDeclarationRule.php - - - message: "#^Parameter \\#2 \\$expectedErrors of method PHPStan\\\\Testing\\\\RuleTestCase\\\\:\\:analyse\\(\\) expects array\\, array\\{array\\} given\\.$#" - count: 1 - path: test/Integration/AbstractTestCase.php - diff --git a/phpstan.neon b/phpstan.neon index b520ec69..b2ca2a3f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,7 +3,6 @@ includes: - rules.neon parameters: - checkMissingIterableValueType: false checkGenericClassInNonGenericObjectType: false ergebnis: diff --git a/test/Integration/AbstractTestCase.php b/test/Integration/AbstractTestCase.php index 34cfcfcc..22ecc631 100644 --- a/test/Integration/AbstractTestCase.php +++ b/test/Integration/AbstractTestCase.php @@ -31,6 +31,9 @@ final public function testAnalysisSucceeds(string $path): void ); } + /** + * @param array{0: string, 1: int} $error + */ #[Framework\Attributes\DataProvider('provideCasesWhereAnalysisShouldFail')] final public function testAnalysisFails(string $path, array $error): void { @@ -46,7 +49,13 @@ final public function testAnalysisFails(string $path, array $error): void ); } + /** + * @return iterable + */ abstract public static function provideCasesWhereAnalysisShouldSucceed(): iterable; + /** + * @return iterable + */ abstract public static function provideCasesWhereAnalysisShouldFail(): iterable; }