phpokeapi
phpokeapi copied to clipboard
Project not working
Trying to run the given example in Readme:
species('bulbasaur'); // or $client->species(1); Gets errors including a parsing error: Deprecated: Return type of PhpCollection\AbstractMap::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in pokemon/vendor/phpcollection/phpcollection/src/PhpCollection/AbstractMap.php on line 295 Deprecated: Return type of PhpCollection\AbstractMap::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in pokemon/vendor/phpcollection/phpcollection/src/PhpCollection/AbstractMap.php on line 290 Parse error: syntax error, unexpected token "readonly" in pokemon/vendor/jms/serializer/src/JMS/Serializer/Metadata/Driver/AnnotationDriver.php on line 80