diff --git a/Qa/lib/validation/assert/numeric-comparison.php b/Qa/lib/validation/assert/numeric-comparison.php index d90d2dcaf..8d0c87226 100644 --- a/Qa/lib/validation/assert/numeric-comparison.php +++ b/Qa/lib/validation/assert/numeric-comparison.php @@ -13,7 +13,8 @@ */ function df_assert_between($v, $min, $max, bool $inclusive = true) { if (!df_between($v, $min, $max, $inclusive)) { - list($o1, $o2) = !$inclusive ? ['>', '<'] : ['≥', '≤']; /** @var string $o1 */ /** @var string $o2 */ + # 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379 + [$o1, $o2] = !$inclusive ? ['>', '<'] : ['≥', '≤']; /** @var string $o1 */ /** @var string $o2 */ df_error("The value «{$v}» is not allowed. An allowed value should be $o1 $min and $o2 $max."); } return $v;