mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 16:05:51 +03:00
[GH-ISSUE #130] setReturnType causes error #76
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kasperkamperman on GitHub (Jun 14, 2018).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/130
I try to set the return type to an associative array as mentioned in the changing return type example in the documentation.
This gives me a: "Fatal error: Uncaught Error: Class 'SpotifyWebAPI' not found" error.
I include the class like this:
I've found a work-around by using the string directly like
This works. However still curious why the mentioned constant can't be used.
@jwilsson commented on GitHub (Jun 14, 2018):
Hi!
My bad, that's an error in the docs. Adding the namespace should solve it.
And I'll get the docs updated.