Skip to content

Commit f86924c

Browse files
committed
phpstan: Disable reporting stale suppressions
component-model 4.0 seems to have fixed the issue by changing the return type hint to `array`: nette/component-model@c40aa8e
1 parent 96df7b9 commit f86924c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

phpstan-baseline.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
parameters:
22
ignoreErrors:
33
# https://github.com/phpstan/phpstan-nette/issues/141
4+
-
5+
message: '#^Instanceof between Nette\\ComponentModel\\IComponent and Nette\\ComponentModel\\IComponent will always evaluate to true\.$#'
6+
identifier: instanceof.alwaysTrue
7+
# Only occurs with forms < 3.3.0
8+
reportUnmatched: false
9+
count: 2
10+
path: src/Replicator/Container.php
11+
412
-
513
message: '#^Parameter \#1 \$array of function array_filter expects array, Iterator\<int\|string, Nette\\ComponentModel\\IComponent\> given\.$#'
614
identifier: argument.type
15+
# Only occurs with forms < 3.3.0
16+
reportUnmatched: false
717
count: 3
818
path: src/Replicator/Container.php
919

1020
-
1121
message: '#^Parameter \#1 \$array of function array_filter expects array, Iterator\<int\|string, Nette\\ComponentModel\\IComponent\>\|list\<Nette\\ComponentModel\\IComponent\> given\.$#'
1222
identifier: argument.type
23+
# Only occurs with forms < 3.3.0
24+
reportUnmatched: false
1325
count: 2
1426
path: src/Replicator/Container.php

0 commit comments

Comments
 (0)