-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSR-7 v2 #108
Comments
@kelunik I indeed saw that PSR-7 v2 was out. The question that I have is does it warrant an new version for all packages to correctly implements the return type or not ? If so I could take the opportunity to bump correctly all repo and to have a clean release with all repo moving to v7. it might take a bit more time but the result would be worthwhile I think |
Adding parameter types requires a new major version for packages shipping implementations, yes. So the plan is bumping everything to v7 so the next version for |
Yes that's the plan so that tags can be added on the monorepo directly. Makes management easier for me |
@kelunik turns out that moving to PSR-7 version 2.0 is a lot easier than I thought since the package is already fully typed but I will have to wait for the https://github.com/php-http/psr7-integration-tests package to supports: |
The master branch now supports PSR-7 version two.
|
@kelunik most of the work to release version 7 is done Updating the documentation is still a to do work but it will be an easy one as most of the public API is still the same. I have a question for you as a user of the package though. I want to remove the - public static createFromString(Stringable|string $uri): self
+ public static fromString(Stringable|string $uri): self It can be done in 2 ways:
I presume the latter is better as it allows for a simpler migration path to v7 🤔 Another possibility is to think that renaming is not necessary. I am just looking for feedback to see what's the best scenario (from the POV of maintenance burden). IMHO at some point the |
The |
@nyamsprod Sorry, forgot to answer. It's best to deprecate and introduce aliases if you want to transition to the new naming. |
I updated a branch of |
are tagged. Unless some big bug are found if all goes well the new stable tag will be released next week 🤞🏾 |
Feature Request
Support for PSR-7 v2 in league/uri-components.
See https://www.php-fig.org/psr/psr-7/meta/#72-type-additions
The text was updated successfully, but these errors were encountered: