Skip to content

Commit 8270b37

Browse files
committed
[BE] ArrayUnpackingRule
1 parent 0dc119c commit 8270b37

File tree

5 files changed

+2
-9
lines changed

5 files changed

+2
-9
lines changed

changelog-2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Major new features 🚀
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!
1919
* Rule for `call_user_func()` (level 5) ([#2479](https://github.com/phpstan/phpstan-src/pull/2479)), thanks @staabm!
20+
* ArrayUnpackingRule (level 3) ([#856](https://github.com/phpstan/phpstan-src/pull/856)), thanks @canvural!
2021
* Added previously absent type checks (level 0)
2122
* Check existing classes in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/6838669976bf20232abde36ecdd52b1770fa50c9)
2223
* Check nonexistent classes in local type aliases (https://github.com/phpstan/phpstan-src/commit/2485b2e9c129e789ec3b2d7db81ca30f87c63911)
@@ -47,7 +48,6 @@ Bleeding edge (TODO move to other sections)
4748

4849
* Report useless `array_filter()` calls ([#1077](https://github.com/phpstan/phpstan-src/pull/1077)), #6840, thanks @leongersen!
4950
* Specify explicit mixed array type via `is_array` ([#1191](https://github.com/phpstan/phpstan-src/pull/1191)), thanks @herndlm!
50-
* ArrayUnpackingRule (level 3) ([#856](https://github.com/phpstan/phpstan-src/pull/856)), thanks @canvural!
5151
* Rules for checking direct calls to `__construct()` (level 2) ([#1208](https://github.com/phpstan/phpstan-src/pull/1208)), #7022, thanks @muno92!
5252
* ConstantLooseComparisonRule - level 4 (https://github.com/phpstan/phpstan-src/commit/6ebf2361a3c831dd105a815521889428c295dc9f)
5353
* Unresolvable parameters ([#1319](https://github.com/phpstan/phpstan-src/pull/1319)), thanks @rvanvelzen!

conf/bleedingEdge.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ parameters:
66

77
explicitMixedViaIsArray: true
88
arrayFilter: true
9-
arrayUnpacking: true
109
arrayValues: true
1110
strictUnnecessaryNullsafePropertyFetch: true
1211
looseComparison: true

conf/config.level3.neon

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ includes:
22
- config.level2.neon
33

44
conditionalTags:
5-
PHPStan\Rules\Arrays\ArrayUnpackingRule:
6-
phpstan.rules.rule: %featureToggles.arrayUnpacking%
75
PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyAssignRefRule:
86
phpstan.rules.rule: %featureToggles.readOnlyByPhpDoc%
97
PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyAssignRule:
108
phpstan.rules.rule: %featureToggles.readOnlyByPhpDoc%
119

1210
rules:
1311
- PHPStan\Rules\Arrays\ArrayDestructuringRule
12+
- PHPStan\Rules\Arrays\ArrayUnpackingRule
1413
- PHPStan\Rules\Arrays\IterableInForeachRule
1514
- PHPStan\Rules\Arrays\OffsetAccessAssignmentRule
1615
- PHPStan\Rules\Arrays\OffsetAccessAssignOpRule
@@ -85,9 +84,6 @@ services:
8584
tags:
8685
- phpstan.rules.rule
8786

88-
-
89-
class: PHPStan\Rules\Arrays\ArrayUnpackingRule
90-
9187
-
9288
class: PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyAssignRefRule
9389

conf/config.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ parameters:
2626
skipCheckGenericClasses: []
2727
explicitMixedViaIsArray: false
2828
arrayFilter: false
29-
arrayUnpacking: false
3029
arrayValues: false
3130
illegalConstructorMethodCall: false
3231
strictUnnecessaryNullsafePropertyFetch: false

conf/parametersSchema.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ parametersSchema:
3232
skipCheckGenericClasses: listOf(string()),
3333
explicitMixedViaIsArray: bool(),
3434
arrayFilter: bool(),
35-
arrayUnpacking: bool(),
3635
arrayValues: bool(),
3736
illegalConstructorMethodCall: bool(),
3837
strictUnnecessaryNullsafePropertyFetch: bool(),

0 commit comments

Comments
 (0)