Skip to content

Commit 676cbae

Browse files
committed
[BE] Rule for call_user_func()
1 parent c764f78 commit 676cbae

File tree

5 files changed

+2
-8
lines changed

5 files changed

+2
-8
lines changed

changelog-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Major new features 🚀
1616
* LogicalXorConstantConditionRule (level 4) (https://github.com/phpstan/phpstan-src/commit/3a12724fd636b1bcf36c22b36e8f765d97150895, https://github.com/phpstan/phpstan-src/commit/3b011f6524254dad0f16840fdcfdbe7421548617), #7539
1717
* Check that each trait is used and analysed at least once (level 4) (https://github.com/phpstan/phpstan-src/commit/c4d05276fb8605d6ac20acbe1cc5df31cd6c10b0)
1818
* Check preg_quote delimiter sanity (level 0) ([#3252](https://github.com/phpstan/phpstan-src/pull/3252)), #11338, thanks @staabm!
19+
* Rule for `call_user_func()` (level 5) ([#2479](https://github.com/phpstan/phpstan-src/pull/2479)), thanks @staabm!
1920
* Added previously absent type checks (level 0)
2021
* Check existing classes in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/6838669976bf20232abde36ecdd52b1770fa50c9)
2122
* Check nonexistent classes in local type aliases (https://github.com/phpstan/phpstan-src/commit/2485b2e9c129e789ec3b2d7db81ca30f87c63911)
@@ -65,7 +66,6 @@ Bleeding edge (TODO move to other sections)
6566
* Report narrowing `PHPStan\Type\Type` interface via `@var` (https://github.com/phpstan/phpstan-src/commit/713b98fb107213c28e3d8c8b4b43c5f5fc47c144), https://github.com/nunomaduro/larastan/issues/1567#issuecomment-1460445389
6667
* Check invalid PHPDocs in previously unchecked statement types (https://github.com/phpstan/phpstan-src/commit/9780d352f3264aac09ac7954f691de1877db8e01)
6768
* InvalidPHPStanDocTagRule in StubValidator (https://github.com/phpstan/phpstan-src/commit/9c2552b7e744926d1a74c1ba8fd32c64079eed61)
68-
* Rule for `call_user_func()` ([#2479](https://github.com/phpstan/phpstan-src/pull/2479)), thanks @staabm!
6969
* MagicConstantContextRule ([#2741](https://github.com/phpstan/phpstan-src/pull/2741)), #10099, thanks @staabm!
7070
* TooWideMethodReturnTypehintRule - always report for final methods (https://github.com/phpstan/phpstan-src/commit/c30e9a484c8245b8126cd63444607ca74d2af761)
7171
* Report unused results of `and` and `or` (https://github.com/phpstan/phpstan-src/commit/1d8fff637d70a9e9ed3f11dee5d61b9f796cbf1a)

conf/bleedingEdge.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ parameters:
2020
varTagType: true
2121
closureDefaultParameterTypeRule: true
2222
propertyVariance: true
23-
callUserFunc: true
2423
magicConstantOutOfContext: true
2524
pure: true
2625
checkParameterCastableToStringFunctions: true

conf/config.level5.neon

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ conditionalTags:
1010
phpstan.rules.rule: %featureToggles.arrayFilter%
1111
PHPStan\Rules\Functions\ArrayValuesRule:
1212
phpstan.rules.rule: %featureToggles.arrayValues%
13-
PHPStan\Rules\Functions\CallUserFuncRule:
14-
phpstan.rules.rule: %featureToggles.callUserFunc%
1513
PHPStan\Rules\Functions\ParameterCastableToStringRule:
1614
phpstan.rules.rule: %featureToggles.checkParameterCastableToStringFunctions%
1715
PHPStan\Rules\Functions\ImplodeParameterCastableToStringRule:
@@ -21,6 +19,7 @@ conditionalTags:
2119

2220
rules:
2321
- PHPStan\Rules\DateTimeInstantiationRule
22+
- PHPStan\Rules\Functions\CallUserFuncRule
2423

2524
services:
2625
-
@@ -42,8 +41,6 @@ services:
4241
treatPhpDocTypesAsCertain: %treatPhpDocTypesAsCertain%
4342
treatPhpDocTypesAsCertainTip: %tips.treatPhpDocTypesAsCertain%
4443

45-
-
46-
class: PHPStan\Rules\Functions\CallUserFuncRule
4744
-
4845
class: PHPStan\Rules\Functions\ParameterCastableToStringRule
4946
-

conf/config.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ parameters:
4242
closureDefaultParameterTypeRule: false
4343
propertyVariance: false
4444
stricterFunctionMap: false
45-
callUserFunc: false
4645
magicConstantOutOfContext: false
4746
pure: false
4847
checkParameterCastableToStringFunctions: false

conf/parametersSchema.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ parametersSchema:
4848
closureDefaultParameterTypeRule: bool()
4949
propertyVariance: bool()
5050
stricterFunctionMap: bool()
51-
callUserFunc: bool()
5251
magicConstantOutOfContext: bool()
5352
pure: bool()
5453
checkParameterCastableToStringFunctions: bool()

0 commit comments

Comments
 (0)