From 47619c5c44861b7607392362f2c93131d901f592 Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Wed, 5 Jun 2024 23:56:03 +0100 Subject: [PATCH] https://github.com/mage2pro/core/issues/379 --- API/Facade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/API/Facade.php b/API/Facade.php index 1d8fc8a70..c305c29a3 100644 --- a/API/Facade.php +++ b/API/Facade.php @@ -158,7 +158,8 @@ final protected function p($p = [], $method = null, string $suffix = '', FacadeO # https://3v4l.org/3O92j # https://php.net/manual/migration71.new-features.php#migration71.new-features.symmetric-array-destructuring # https://stackoverflow.com/a/28233499 - list($id, $p) = is_array($p) ? [null, $p] : [$p, []]; /** @var int|string|null $id */ + # 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379 + [$id, $p] = is_array($p) ? [null, $p] : [$p, []]; /** @var int|string|null $id */ /** @uses \Df\API\Client::__construct() */ $c = df_newa(df_con($this, 'API\\Client'), Client::class, # 2022-11-17