From 6d818caedcf655cf8bdefbfab084310ae5665c1e Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Thu, 6 Jun 2024 00:00:03 +0100 Subject: [PATCH] https://github.com/mage2pro/core/issues/379 --- Framework/Form/Element/Fieldset.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Framework/Form/Element/Fieldset.php b/Framework/Form/Element/Fieldset.php index c4b98e855..8a8d7b97c 100644 --- a/Framework/Form/Element/Fieldset.php +++ b/Framework/Form/Element/Fieldset.php @@ -410,7 +410,8 @@ final protected function select(string $name, string $label, $v, $data = [], $cf # https://3v4l.org/3O92j # https://php.net/manual/migration71.new-features.php#migration71.new-features.symmetric-array-destructuring # https://stackoverflow.com/a/28233499 - list($type, $cfg) = [$cfg, []]; + # 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379 + [$type, $cfg] = [$cfg, []]; } else { $type = dfa($cfg, 'type', 'select');