From dfc762d4c4fd22c266cce2c15580e02d84ba2321 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Mon, 17 Jun 2024 20:11:26 +0200 Subject: [PATCH] [CLEANUP] rector: Long array to short array and Change list() to array destruct 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 --- src/RuleSet/DeclarationBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RuleSet/DeclarationBlock.php b/src/RuleSet/DeclarationBlock.php index e51e782f..23716724 100644 --- a/src/RuleSet/DeclarationBlock.php +++ b/src/RuleSet/DeclarationBlock.php @@ -380,7 +380,7 @@ public function expandFontShorthand() ) { $aFontProperties['font-weight'] = $mValue; } elseif ($mValue instanceof RuleValueList && $mValue->getListSeparator() == '/') { - list($oSize, $oHeight) = $mValue->getListComponents(); + [$oSize, $oHeight] = $mValue->getListComponents(); $aFontProperties['font-size'] = $oSize; $aFontProperties['line-height'] = $oHeight; } elseif ($mValue instanceof Size && $mValue->getUnit() !== null) {