From 2d7c93cb6b499b49429cd7da1b0baf8b5d48d679 Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Wed, 5 Jun 2024 23:53:42 +0100 Subject: [PATCH] https://github.com/mage2pro/core/issues/379 --- API/Validator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/API/Validator.php b/API/Validator.php index 118c1b2..95383d3 100644 --- a/API/Validator.php +++ b/API/Validator.php @@ -12,9 +12,11 @@ final class Validator extends \Df\API\Response\Validator { * @override * @see \Df\API\Exception::short() * @used-by \Df\API\Client::_p() + * @used-by \Df\API\Exception::message() */ function short():string { - list($c, $m) = [$this->code(), $this->result('ResponseMessage')]; /** @var string $c */ /** @var string $m */ + # 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379 + [$c, $m] = [$this->code(), $this->result('ResponseMessage')]; /** @var string $c */ /** @var string $m */ return !$c ? $m : "[$c] $m"; }