Repository navigation
Commit 1829e84
committed
[TypeDeclarationDocblocks] Widen empty nested array default to mixed[] in DocblockVarArrayFromPropertyDefaultsRector
Remove the hasEmptyNestedArray guard so a map whose values are empty arrays
(e.g. ['select' => [], 'from' => []]) gets a @var array<string, mixed[]> docblock
instead of being skipped. Only a direct single [] default stays skipped.
Claude-Session: https://claude.ai/code/session_01F6Coa2BZXNc18QhSVkhrYe1 parent 1d80900 commit 1829e84
2 files changed
Lines changed: 0 additions & 42 deletions
File tree
- rules-tests/TypeDeclarationDocblocks/Rector/Class_/DocblockVarArrayFromPropertyDefaultsRector/Fixture
- rules/TypeDeclarationDocblocks/Rector/Class_
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 97 | | |
104 | 98 | | |
105 | 99 | | |
| |||
129 | 123 | | |
130 | 124 | | |
131 | 125 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 126 | | |
156 | 127 | | |
157 | 128 | | |
| |||
0 commit comments