diff --git a/app/code/local/Df/Core/lib/text/prepend-append.php b/app/code/local/Df/Core/lib/text/prepend-append.php index fc9b80ac4d..530c987d7f 100644 --- a/app/code/local/Df/Core/lib/text/prepend-append.php +++ b/app/code/local/Df/Core/lib/text/prepend-append.php @@ -21,10 +21,12 @@ function df_pad($phrase, $length, $pattern = ' ', $position = STR_PAD_RIGHT) {/* /** @var int $left_pad */ /** @var int $right_pad */ switch ($position) { case STR_PAD_RIGHT: - list($left_pad, $right_pad) = [0, $num_pad_chars]; + # 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379 + [$left_pad, $right_pad] = [0, $num_pad_chars]; break; case STR_PAD_LEFT: - list($left_pad, $right_pad) = [$num_pad_chars, 0]; + # 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379 + [$left_pad, $right_pad] = [$num_pad_chars, 0]; break; case STR_PAD_BOTH: $left_pad = floor($num_pad_chars / 2);