Every first time get pokemon information this will happend
$PokemonGoAPI->getInventories()->getPokeBank()->getPokemonById(\POGOProtos\Enums\PokemonId::PIDGEY);
Fatal error: Uncaught Error: Call to a member function getInventoryItemsArray() on null in /Applications/XAMPP/xamppfiles/htdocs/pkg2/src/PokemonGoAPI/Api/Inventory/Inventories.php:68 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/pkg2/src/PokemonGoAPI/Api/PokemonGoAPI.php(49): PokemonGoAPI\Api\Inventory\Inventories->updateInventories(false) #1 /Applications/XAMPP/xamppfiles/htdocs/pkg2/examples/CheckPidgeyExample.php(20): PokemonGoAPI\Api\PokemonGoAPI->__construct(Array) #2 /Applications/XAMPP/xamppfiles/htdocs/pkg2/examples/CheckPidgeyExample.php(41): CheckPidgeyExample->run() #3 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/pkg2/src/PokemonGoAPI/Api/Inventory/Inventories.php on line 68
After I refresh the page and this will be fixed;
What is your php version? This happen everytime?
php 7, not every time, After about 3-5 min or change another account to login this will be happend
Now I check the same code and if this happen to me too.