You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello i want use this package but i cant this error.
Type error: Argument 1 passed to
Invisnik\LaravelSteamInventory\SteamInventory::parseItemTags() must be of the type array,
null given, called in /home/vagrant/Code/vendor/invisnik/laravel-
steaminventory/src/SteamInventory.php on line 195
My Controller:
use Invisnik\LaravelSteamInventory\SteamInventory;
public function loadInventory($case)
{
$user = "76561198103413007"; // i tried to $user = 76561198103413007;
$items = $this->steamInventory
->loadInventory($user, 578080)
->getInventoryWithDescriptions();
return compact('items');
}
And other users have
(1/1) ErrorExceptionarray_map(): Argument #2 should be an array
--
in SteamInventory.php (line 199)
at HandleExceptions->handleError(2, 'array_map(): Argument #2 should be an array', '/home/vagrant/Code/vendor/invisnik/laravel-steam-inventory/src/SteamInventory.php', 199, array('contextid' => 2, 'inventory' => null, 'descriptions' => null))
at array_map(object(Closure), null)in SteamInventory.php (line 199)
at SteamInventory->getInventoryWithDescriptions()in UserController.php (line 102)
at UserController->loadInventory('0')
at call_user_func_array(array(object(UserController), 'loadInventory'), array('case' => '0'))in Controller.php (line 55)
at Controller->callAction('loadInventory', array('case' => '0'))in ControllerDispatcher.php (line 44)
at ControllerDispatcher->dispatch(object(Route), object(UserController), 'loadInventory')in Route.php (line 203)
The text was updated successfully, but these errors were encountered:
Hello i want use this package but i cant this error.
My Controller:
And other users have
The text was updated successfully, but these errors were encountered: