Skip to content

Commit a07c51a

Browse files
authored
[CLEANUP] rector: Long array to short array and Change list() to array destruct (#553)
This applies the rule LongArrayToShortArrayRector. For details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#longarraytoshortarrayrector This applies the rule ListToArrayDestructRector For details see: https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#listtoarraydestructrector Signed-off-by: Daniel Ziegenberg <[email protected]>
1 parent 3c2e4e0 commit a07c51a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RuleSet/DeclarationBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public function expandFontShorthand()
380380
) {
381381
$aFontProperties['font-weight'] = $mValue;
382382
} elseif ($mValue instanceof RuleValueList && $mValue->getListSeparator() == '/') {
383-
list($oSize, $oHeight) = $mValue->getListComponents();
383+
[$oSize, $oHeight] = $mValue->getListComponents();
384384
$aFontProperties['font-size'] = $oSize;
385385
$aFontProperties['line-height'] = $oHeight;
386386
} elseif ($mValue instanceof Size && $mValue->getUnit() !== null) {

0 commit comments

Comments
 (0)