Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/379
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 5, 2024
1 parent 3534ff7 commit 865abad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Qa/lib/validation/assert/numeric-comparison.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 865abad

Please sign in to comment.