-
Notifications
You must be signed in to change notification settings - Fork 96
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
Update dependencies and fix BC accordingly #216
Update dependencies and fix BC accordingly #216
Conversation
- Support for league/uri 7.x
I sent it: |
@scaytrase |
The support for The issue I mentioned at the beginning, about not being able to install this library in recent frameworks, is now completely resolved. |
@scaytrase If there's anything I can do to help, please let me know. I'll be happy to do it. |
@@ -12,6 +12,8 @@ class StringURI | |||
public function __invoke(string $value): bool | |||
{ | |||
try { | |||
// namespace 'League\Uri' is provided by multiple packages, but PHPStan does not support merging them | |||
// @phpstan-ignore-next-line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one could be reported to phpstan. really strange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
Thanks a lot! |
Overview
This package has slightly older dependencies, making it a little more difficult to install on frameworks including Laravel and Symfony. (For example, currently, the
-w
option is required forcomposer require
becausepsr/http-message
needs to be downgraded during installation.)To address these issues, I have expanded or updated the versions of some of the most frequently used packages.
psr/http-message
league/uri
Suppress errors caused by version changes in
league/uri
guzzlehttp/psr7
^2.0
.^2.0
contains breaking changes, so I have fixed all code related to them. Details of the fixes are described here. I simply replaced the method.UPDATE: 2024-01-08 13:30 UTC
psr/http-message
psr/http-message:^2.0
and updating dependencies hansott/psr7-cookies#17Additional Information
I previously created a pull request in #215 that significantly expanded the scope of CI. Although it has not been merged yet, I have tested this pull request with that commit in my repository.
In addition to the PHP versions supported by the current CI, we can confirm that the tests pass on recent PHP versions, including the latest version. The results can be viewed here.
Note
Please note that even after importing this pull request,psr/http-message
will not be upgraded to2.0
due to other packages requiring version1.0
.I am also planning to submit a pull request to the repository of that package to address this issue.UPDATE: 2024-01-08 13:30 UTC
That pull request is accepted and published as
4.0
, so I updated this pull request to follow it.