From 548e037538a58d07012bbde5ad169a3a3e0ceefe Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 26 Oct 2023 13:13:34 +0200 Subject: [PATCH] PHPStan: ignore false positive errors --- .phpstan.neon | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.phpstan.neon b/.phpstan.neon index 5567202..5199950 100644 --- a/.phpstan.neon +++ b/.phpstan.neon @@ -76,3 +76,15 @@ parameters: count: 1 path: tests/Unit/V1/ResourceNullTest.php # We are providing an invalid parameter to test the deprecation message + + - + message: "#^Parameter \\#1 \\$key of method Art4\\\\JsonApiClient\\\\Tests\\\\Fixtures\\\\AccessableTraitMock\\:\\:get\\(\\) expects Art4\\\\JsonApiClient\\\\Helper\\\\AccessKey\\|int\\|string, mixed given\\.$#" + count: 1 + path: tests/Unit/Helper/AccessableTraitTest.php + # We are providing an invalid parameter to test the deprecation message + + - + message: "#^Parameter \\#1 \\$key of method Art4\\\\JsonApiClient\\\\Tests\\\\Fixtures\\\\AccessableTraitMock\\:\\:has\\(\\) expects Art4\\\\JsonApiClient\\\\Helper\\\\AccessKey\\|int\\|string, mixed given\\.$#" + count: 1 + path: tests/Unit/Helper/AccessableTraitTest.php + # We are providing an invalid parameter to test the deprecation message