From 435feef1907e07ffd7da199c21fd8f5f5dc9d7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 3 Feb 2024 15:11:18 +0100 Subject: [PATCH 1/2] Require phpstan iterable types --- phpstan.neon.dist | 2 -- 1 file changed, 2 deletions(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 0fa1591736..8d661e9878 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -12,8 +12,6 @@ parameters: checkMissingOverrideMethodAttribute: true ignoreErrors: - - '~^(Property .+ has|Method .+\(\) (has parameter \$.+ with|return type has)) no value type specified in iterable type .+\.~' - # relax strict rules - '~^Only booleans are allowed in .+, .+ given( on the (left|right) side)?\.~' - '~^Variable (static )?(property access|method call) on .+\.~' From 38ec8a68da59c9324654cd874ca64a72d16d7155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Sat, 3 Feb 2024 15:18:23 +0100 Subject: [PATCH 2/2] fix property iterable types first --- phpstan.neon.dist | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 8d661e9878..f176173a74 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -12,6 +12,9 @@ parameters: checkMissingOverrideMethodAttribute: true ignoreErrors: + - '~^Method .+\(\) has parameter \$.+ with no value type specified in iterable type .+\.~' + - '~^Method .+\(\) return type has no value type specified in iterable type .+\.~' + # relax strict rules - '~^Only booleans are allowed in .+, .+ given( on the (left|right) side)?\.~' - '~^Variable (static )?(property access|method call) on .+\.~'