Skip to content

Cleanup the accept HTTP header as GitHub no longer versions this - #1155

Open
nunoplopes wants to merge 1 commit into
KnpLabs:masterfrom
nunoplopes:accept_header
Open

nunoplopes wants to merge 1 commit into
KnpLabs:masterfrom
nunoplopes:accept_header

Conversation

@nunoplopes

Copy link
Copy Markdown
Contributor

See this: https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api?apiVersion=2022-11-28#media-types

GitHub not longer versions the accept header. It uses this instead: https://docs.github.com/en/rest/about-the-rest-api/api-versions?apiVersion=2022-11-28
But since GitHub is only exposing a single API right now, there's no need for versioning. Plus, all the exported functions are available and are not in preview anymore.

{
use AcceptHeaderTrait;

public function configure()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configure method can not just be removed as this would be a BC break. Can you just empty the method, trigger a deprecation message so that users know don't need to call this method anymore and return $this.

We can cleanup these methods in the next major. Same for other configure method removals

@acrobat

acrobat commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Also do a rebase to resolve the conflicts!

@nunoplopes

Copy link
Copy Markdown
Contributor Author

done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants