Skip to content

Commit 69ae809

Browse files
committed
phpstan: Disable reporting stale suppressions
nette/forms 3.3.0 add support for component-model 4.0. component-model 4.0 seems to have fixed the issue by changing the return type hint to `array`: nette/component-model@c40aa8e We still need to keep the ignores for compatibility with older versions.
1 parent 8b7d6ba commit 69ae809

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 14 deletions
This file was deleted.

phpstan.dist.neon

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,19 @@ parameters:
3232
reportUnmatched: false
3333
count: 2
3434
path: src/Replicator/Container.php
35+
36+
-
37+
message: '#^Parameter \#1 \$array of function array_filter expects array, Iterator\<int\|string, Nette\\ComponentModel\\IComponent\> given\.$#'
38+
identifier: argument.type
39+
# Only occurs with component-model < 4.0.0
40+
reportUnmatched: false
41+
count: 3
42+
path: src/Replicator/Container.php
43+
44+
-
45+
message: '#^Parameter \#1 \$array of function array_filter expects array, Iterator\<int\|string, Nette\\ComponentModel\\IComponent\>\|list\<Nette\\ComponentModel\\IComponent\> given\.$#'
46+
identifier: argument.type
47+
# Only occurs with component-model < 4.0.0
48+
reportUnmatched: false
49+
count: 2
50+
path: src/Replicator/Container.php

0 commit comments

Comments
 (0)