File tree Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Expand file tree Collapse file tree 4 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -55,5 +55,6 @@ parameters:
55
55
pure : true
56
56
checkParameterCastableToStringFunctions : true
57
57
narrowPregMatches : true
58
+ uselessReturnValue : true
58
59
stubFiles :
59
60
- ../stubs/bleedingEdge/Rule.stub
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ conditionalTags:
24
24
phpstan.rules.rule : %featureToggles.missingMagicSerializationRule%
25
25
PHPStan\Rules\Constants\MagicConstantContextRule :
26
26
phpstan.rules.rule : %featureToggles.magicConstantOutOfContext%
27
+ PHPStan\Rules\Functions\UselessFunctionReturnValueRule :
28
+ phpstan.rules.rule : %featureToggles.uselessReturnValue%
27
29
28
30
rules :
29
31
- PHPStan\Rules\Api\ApiInstantiationRule
70
72
- PHPStan\Rules\Functions\DefineParametersRule
71
73
- PHPStan\Rules\Functions\ExistingClassesInArrowFunctionTypehintsRule
72
74
- PHPStan\Rules\Functions\CallToFunctionParametersRule
73
- - PHPStan\Rules\Functions\UselessFunctionReturnValueRule
74
75
- PHPStan\Rules\Functions\ExistingClassesInClosureTypehintsRule
75
76
- PHPStan\Rules\Functions\ExistingClassesInTypehintsRule
76
77
- PHPStan\Rules\Functions\FunctionAttributesRule
@@ -294,3 +295,6 @@ services:
294
295
295
296
-
296
297
class : PHPStan\Rules\Constants\MagicConstantContextRule
298
+
299
+ -
300
+ class : PHPStan\Rules\Functions\UselessFunctionReturnValueRule
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ parameters:
90
90
pure : false
91
91
checkParameterCastableToStringFunctions : false
92
92
narrowPregMatches : false
93
+ uselessReturnValue : false
93
94
fileExtensions :
94
95
- php
95
96
checkAdvancedIsset : false
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ parametersSchema:
85
85
pure : bool ()
86
86
checkParameterCastableToStringFunctions : bool ()
87
87
narrowPregMatches : bool ()
88
+ uselessReturnValue : bool ()
88
89
])
89
90
fileExtensions : listOf (string ())
90
91
checkAdvancedIsset : bool ()
You can’t perform that action at this time.
0 commit comments