Skip to content

Commit c8a4944

Browse files
authored
Merge pull request #1 from cjmaxik/patch-1
Update Player.php, Get rid of 'Undefined index: descriptor'
2 parents 35d051c + 4efdbaf commit c8a4944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types/Player.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(ResponseInterface $response)
6161
$json = json_decode((string)$response->getBody(), true, 512, JSON_BIGINT_AS_STRING);
6262

6363
if ($json['error']) {
64-
throw new PlayerNotFoundException($json['descriptor']);
64+
throw new PlayerNotFoundException($json['response']);
6565
}
6666

6767
$this->id = $json['response']['id'];

0 commit comments

Comments
 (0)