Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FatalThrowableError #6

Closed
osmancandurdu opened this issue Sep 2, 2017 · 2 comments
Closed

FatalThrowableError #6

osmancandurdu opened this issue Sep 2, 2017 · 2 comments

Comments

@osmancandurdu
Copy link

osmancandurdu commented Sep 2, 2017

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)


@osmancandurdu
Copy link
Author

No one helping me?

@invisnik
Copy link
Owner

invisnik commented Sep 3, 2017

Hello. I don't have time for fixing this bug. I will try fix this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants