Skip to content
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

Merged

Conversation

KentarouTakeda
Copy link
Contributor

@KentarouTakeda KentarouTakeda commented Jan 4, 2024

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 for composer require because psr/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.

Additional 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 to 2.0 due to other packages requiring version 1.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.

@KentarouTakeda
Copy link
Contributor Author

I am also planning to submit a pull request to the repository of that package to address this issue.

I sent it:
hansott/psr7-cookies#17

@KentarouTakeda
Copy link
Contributor Author

@scaytrase
Hi, could you please check out these changes?

@KentarouTakeda
Copy link
Contributor Author

The support for hansott/psr7-cookies has been completed, so we can now install the latest version of psr/http-message with the current code

The issue I mentioned at the beginning, about not being able to install this library in recent frameworks, is now completely resolved.

@KentarouTakeda
Copy link
Contributor Author

@scaytrase
I'm really sorry you're busy. Could you please take a look at this pull request?

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
Copy link
Member

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

Copy link
Member

@scaytrase scaytrase left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@scaytrase
Copy link
Member

@scaytrase scaytrase merged commit a665e22 into thephpleague:master Jan 10, 2024
12 checks passed
@scaytrase
Copy link
Member

@KentarouTakeda
Copy link
Contributor Author

Thanks a lot!

@KentarouTakeda KentarouTakeda deleted the update-dependencies-and-fix-bc branch January 11, 2024 01:10
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.

4 participants