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 be4815a commit 2d7c93c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion API/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 2d7c93c

Please sign in to comment.