phpokeapi icon indicating copy to clipboard operation
phpokeapi copied to clipboard

Project not working

Open TheEzraMiller opened this issue 3 years ago • 0 comments

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

TheEzraMiller avatar Jan 03 '22 13:01 TheEzraMiller