mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[PR #283] [MERGED] convert self to static in Request.php #284
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#284
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?
📋 Pull Request Information
Original PR: https://github.com/jwilsson/spotify-web-api-php/pull/283
Author: @ariaieboy
Created: 1/14/2025
Status: ✅ Merged
Merged: 1/18/2025
Merged by: @jwilsson
Base:
main← Head:static📝 Commits (1)
d79c35econvert self to static📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/Request.php(+2 -2)📄 Description
Ok here is the problem.
In some regions spotify blocks the request to bypass it we need to use a proxy.
And for that, we need to change the
ACCOUNT_URLandAPI_URL.I've extended the
Requestclass and changed those constants. I also passed my customRequestclass to the web API.But since you used
self::, it's not inheritance-aware. By usingstatic::, it will be inheritance-aware, and we can change those constants.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.