Skip to content

Commit edf3b13

Browse files
authored
Fix space union (#242)
1 parent c1ef05a commit edf3b13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private function shouldSkipAssign(Assign $assign, List_ | Array_ $arrayOrList):
157157
/**
158158
* Count the number of params by reference placed at the end
159159
* These params are not needed anymore, so they can be removed
160-
* @param (ArrayItem | null)[] $listItems
160+
* @param (ArrayItem|null)[] $listItems
161161
*/
162162
private function countRightSideMostParamsByRefOrEmpty(array $listItems): int
163163
{
@@ -192,7 +192,7 @@ private function countRightSideMostParamsByRefOrEmpty(array $listItems): int
192192
}
193193

194194
/**
195-
* @param (ArrayItem | null)[] $listItems
195+
* @param (ArrayItem|null)[] $listItems
196196
* @param (int|string)[] $nestedArrayIndexes
197197
* @return Node\Stmt[]
198198
*/
@@ -250,7 +250,7 @@ private function createAssignRefArrayFromListReferences(
250250
* - list(&$a, $b)
251251
* - list($a, $b, list(&$c, $d))
252252
*
253-
* @param (ArrayItem | null)[] $items
253+
* @param (ArrayItem|null)[] $items
254254
*/
255255
private function hasAnyItemByRef(array $items): bool
256256
{
@@ -262,7 +262,7 @@ private function hasAnyItemByRef(array $items): bool
262262
* - list(&$a, &$b)
263263
* - list(&$a, &$b, list(&$c, &$d))
264264
*
265-
* @param (ArrayItem | null)[] $items
265+
* @param (ArrayItem|null)[] $items
266266
*/
267267
private function hasAllItemsByRef(array $items): bool
268268
{

0 commit comments

Comments
 (0)