Skip to content

Commit 4d13e88

Browse files
author
Ernest E
committed
fix(Item): error retrun
1 parent d9ce47e commit 4d13e88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Syntax/SteamApi/Steam/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function GetPlayerItems($appId, $steamId)
4040
$items = $this->convertToObjects($client->result->items);
4141

4242
// Return a full inventory
43-
return new Inventory($client->result->num_backpack_slots, $items);
43+
return (array) new Inventory($client->result->num_backpack_slots, $items);
4444
}
4545

4646
protected function convertToObjects($items)

0 commit comments

Comments
 (0)