Skip to content

Commit 82966af

Browse files
committed
enable only in bleeding edge
1 parent fcfa55d commit 82966af

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

conf/bleedingEdge.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ parameters:
5555
pure: true
5656
checkParameterCastableToStringFunctions: true
5757
narrowPregMatches: true
58+
uselessReturnValue: true
5859
stubFiles:
5960
- ../stubs/bleedingEdge/Rule.stub

conf/config.level0.neon

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ conditionalTags:
2424
phpstan.rules.rule: %featureToggles.missingMagicSerializationRule%
2525
PHPStan\Rules\Constants\MagicConstantContextRule:
2626
phpstan.rules.rule: %featureToggles.magicConstantOutOfContext%
27+
PHPStan\Rules\Functions\UselessFunctionReturnValueRule:
28+
phpstan.rules.rule: %featureToggles.uselessReturnValue%
2729

2830
rules:
2931
- PHPStan\Rules\Api\ApiInstantiationRule
@@ -70,7 +72,6 @@ rules:
7072
- PHPStan\Rules\Functions\DefineParametersRule
7173
- PHPStan\Rules\Functions\ExistingClassesInArrowFunctionTypehintsRule
7274
- PHPStan\Rules\Functions\CallToFunctionParametersRule
73-
- PHPStan\Rules\Functions\UselessFunctionReturnValueRule
7475
- PHPStan\Rules\Functions\ExistingClassesInClosureTypehintsRule
7576
- PHPStan\Rules\Functions\ExistingClassesInTypehintsRule
7677
- PHPStan\Rules\Functions\FunctionAttributesRule
@@ -294,3 +295,6 @@ services:
294295

295296
-
296297
class: PHPStan\Rules\Constants\MagicConstantContextRule
298+
299+
-
300+
class: PHPStan\Rules\Functions\UselessFunctionReturnValueRule

conf/config.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ parameters:
9090
pure: false
9191
checkParameterCastableToStringFunctions: false
9292
narrowPregMatches: false
93+
uselessReturnValue: false
9394
fileExtensions:
9495
- php
9596
checkAdvancedIsset: false

conf/parametersSchema.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ parametersSchema:
8585
pure: bool()
8686
checkParameterCastableToStringFunctions: bool()
8787
narrowPregMatches: bool()
88+
uselessReturnValue: bool()
8889
])
8990
fileExtensions: listOf(string())
9091
checkAdvancedIsset: bool()

0 commit comments

Comments
 (0)