File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ parameters:
3
3
bleedingEdge : true
4
4
skipCheckGenericClasses : []
5
5
explicitMixedInUnknownGenericNew : true
6
+ arrayFilter : true
6
7
stubFiles :
7
8
- ../stubs/bleedingEdge/Countable.stub
Original file line number Diff line number Diff line change @@ -5,10 +5,13 @@ parameters:
5
5
checkFunctionArgumentTypes : true
6
6
checkArgumentsPassedByReference : true
7
7
8
+ conditionalTags :
9
+ PHPStan\Rules\Functions\ArrayFilterRule :
10
+ phpstan.rules.rule : %featureToggles.arrayFilter%
11
+
8
12
rules :
9
13
- PHPStan\Rules\DateTimeInstantiationRule
10
14
- PHPStan\Rules\Functions\ImplodeFunctionRule
11
- - PHPStan\Rules\Functions\ArrayFilterRule
12
15
13
16
services :
14
17
-
@@ -17,3 +20,6 @@ services:
17
20
reportMaybes : %reportMaybes%
18
21
tags :
19
22
- phpstan.rules.rule
23
+
24
+ -
25
+ class : PHPStan\Rules\Functions\ArrayFilterRule
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ parameters:
28
28
- FilterIterator
29
29
- RecursiveCallbackFilterIterator
30
30
explicitMixedInUnknownGenericNew : false
31
+ arrayFilter : false
31
32
fileExtensions :
32
33
- php
33
34
checkAdvancedIsset : false
@@ -205,6 +206,7 @@ parametersSchema:
205
206
disableRuntimeReflectionProvider : bool (),
206
207
skipCheckGenericClasses : listOf (string ()),
207
208
explicitMixedInUnknownGenericNew : bool (),
209
+ arrayFilter : bool (),
208
210
])
209
211
fileExtensions : listOf (string ())
210
212
checkAdvancedIsset : bool ()
You can’t perform that action at this time.
0 commit comments