Skip to content

Commit d899a42

Browse files
committed
Move UselessFunctionReturnValueRule to level 4
1 parent 1d3f431 commit d899a42

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

changelog-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Major new features 🚀
3232
* MagicConstantContextRule (level 0) ([#2741](https://github.com/phpstan/phpstan-src/pull/2741)), #10099, thanks @staabm!
3333
* MissingMagicSerializationMethodsRule (level 0) ([#1711](https://github.com/phpstan/phpstan-src/pull/1711)), #7482, thanks @staabm!
3434
* Check vprintf/vsprintf arguments against placeholder count (level 0) ([#3126](https://github.com/phpstan/phpstan-src/pull/3126)), thanks @staabm!
35-
* Report useless return values of function calls like `var_export` without `$return=true` (level 0) ([#3225](https://github.com/phpstan/phpstan-src/pull/3225)), #11320, thanks @staabm!
35+
* Report useless return values of function calls like `var_export` without `$return=true` (level 4) ([#3225](https://github.com/phpstan/phpstan-src/pull/3225)), #11320, thanks @staabm!
3636
* Rule for `call_user_func()` (level 5) ([#2479](https://github.com/phpstan/phpstan-src/pull/2479)), thanks @staabm!
3737
* Report useless `array_filter()` calls (level 5) ([#1077](https://github.com/phpstan/phpstan-src/pull/1077)), #6840, thanks @leongersen!
3838
* Report useless `array_values()` calls (level 5) ([#2917](https://github.com/phpstan/phpstan-src/pull/2917)), thanks @kamil-zacek!

conf/config.level0.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ rules:
6767
- PHPStan\Rules\Functions\PrintfParametersRule
6868
- PHPStan\Rules\Functions\RedefinedParametersRule
6969
- PHPStan\Rules\Functions\ReturnNullsafeByRefRule
70-
- PHPStan\Rules\Functions\UselessFunctionReturnValueRule
7170
- PHPStan\Rules\Ignore\IgnoreParseErrorRule
7271
- PHPStan\Rules\Functions\VariadicParametersDeclarationRule
7372
- PHPStan\Rules\Keywords\ContinueBreakInLoopRule

conf/config.level4.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rules:
1313
- PHPStan\Rules\DeadCode\UnusedPrivateMethodRule
1414
- PHPStan\Rules\Exceptions\OverwrittenExitPointByFinallyRule
1515
- PHPStan\Rules\Functions\CallToFunctionStatementWithoutSideEffectsRule
16+
- PHPStan\Rules\Functions\UselessFunctionReturnValueRule
1617
- PHPStan\Rules\Methods\CallToConstructorStatementWithoutSideEffectsRule
1718
- PHPStan\Rules\Methods\CallToMethodStatementWithoutSideEffectsRule
1819
- PHPStan\Rules\Methods\CallToStaticMethodStatementWithoutSideEffectsRule

0 commit comments

Comments
 (0)