NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

Wrong code in examples/GUI_BestCpPokemonDetails.php #140

Closed Raphaelbm closed 7 years ago

Raphaelbm commented 7 years ago

I tested this examples because my code doesn't work now : examples/GUI_BestCpPokemonDetails.php

But this line is wrong:

$pokez = $pokemonGoApi->getInventory()->getItems()->getPokeBank()->getPokemons();

Solution:

$pokez = $pokemonGoApi->getInventory()->getPokeBank()->getPokemons();

getPokeBan() function is in inventory I think.

DrDelay commented 7 years ago

Thanks for reporting, I fixed it along with some other adjustments.