mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[GH-ISSUE #273] SpotifyWebAPI\SpotifyWebAPI->followPlaylist() Uncaught TypeError #201
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#201
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 @zwisler on GitHub (Mar 14, 2024).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/273
If i Use a sting i get this error
Fatal error: Uncaught TypeError: SpotifyWebAPI\SpotifyWebAPI::sendRequest(): Argument #3 ($parameters) must be of type array|string, null given, called in /homepages/34/d680223326/htdocs/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php on line 626 and defined in /homepages/34/d680223326/htdocs/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php:109 Stack trace: #0 /homepages/34/d680223326/htdocs/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(626): SpotifyWebAPI\SpotifyWebAPI->sendRequest() #1 /homepages/34/d680223326/htdocs/vendor/CitWebApi/CitaurusWebAPI.php(1304): SpotifyWebAPI\SpotifyWebAPI->followPlaylist() #2 /homepages/34/d680223326/htdocs/SongSubmit.php(50): CitaurusMusicWebAPI->FollowPlaylists() #3 {main} thrown in /homepages/34/d680223326/htdocs/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php on line 109
If i Use a string arry i get this Error
Fatal error: Uncaught TypeError: SpotifyWebAPI\SpotifyWebAPI::followPlaylist(): Argument #1 ($playlistId) must be of type string, array given, called in /homepages/34/d680223326/htdocs/vendor/CitWebApi/CitaurusWebAPI.php on line 1305 and defined in /homepages/34/d680223326/htdocs/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php:614 Stack trace: #0 /homepages/34/d680223326/htdocs/vendor/CitWebApi/CitaurusWebAPI.php(1305): SpotifyWebAPI\SpotifyWebAPI->followPlaylist() #1 /homepages/34/d680223326/htdocs/SongSubmit.php(50): CitaurusMusicWebAPI->FollowPlaylists() #2 {main} thrown in /homepages/34/d680223326/htdocs/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php on line 614
@jwilsson commented on GitHub (Mar 14, 2024):
Hey!
You should pass a string like you're doing in case 1. But it looks like I missed a place when adding type definitions a while back. So the error is an internal one, I'll get a patch published.