From 4efdbafd41dc22bee0a3956f12ccdb58f0219f90 Mon Sep 17 00:00:00 2001 From: Max Mekenya Date: Fri, 29 Jul 2016 18:52:46 +1000 Subject: [PATCH] Update Player.php Get rid of 'Undefined index: descriptor' --- src/Types/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Types/Player.php b/src/Types/Player.php index 23269ad..9d1fa76 100644 --- a/src/Types/Player.php +++ b/src/Types/Player.php @@ -61,7 +61,7 @@ public function __construct(ResponseInterface $response) $json = json_decode((string)$response->getBody(), true, 512, JSON_BIGINT_AS_STRING); if ($json['error']) { - throw new PlayerNotFoundException($json['descriptor']); + throw new PlayerNotFoundException($json['response']); } $this->id = $json['response']['id'];