Skip to content

Commit

Permalink
Cast response to array
Browse files Browse the repository at this point in the history
  • Loading branch information
David Cole committed Jul 28, 2016
1 parent a5b70f3 commit 575048a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord/Repository/AbstractRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function save(Part &$part)
$endpoint,
$attributes
)->then(function ($response) use ($deferred, &$part, $method) {
$part->fill($response);
$part->fill((array) $response);

$part->created = true;
$part->deleted = false;
Expand Down

0 comments on commit 575048a

Please sign in to comment.