From 865abadda897f9e34d68a6d053df4889b6b578e4 Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Thu, 6 Jun 2024 00:03:48 +0100 Subject: [PATCH] https://github.com/mage2pro/core/issues/379 --- Qa/lib/validation/assert/numeric-comparison.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;