-
Notifications
You must be signed in to change notification settings - Fork 672
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
Proposal to Update composer.json to Resolve Dependency Conflicts #10888
base: 5.x
Are you sure you want to change the base?
Conversation
I see the tests didn't pass. I'm going to look into this further. |
Amp v3 and php-parser v5 are supported by the v6 version of Psalm, available by requiring dev-master. |
Thanks for your suggestion. While upgrading to v6 of Psalm might solve the issue with Amp v3 and php-parser v5, it seems that other packages like psalm/plugin-laravel only support up to version 5.20. So, I'll keep looking into it to find a solution that works with our current setup. If you have any other ideas, feel free to share! |
Hello! Sorry, we have the same problem with nikic/php-parser dependency. In our project we want to upgrade phpunit to 11 version, but it requires "nikic/php-parser:^5.0" in https://github.com/sebastianbergmann/php-code-coverage/blob/main/composer.json So we have following problem when trying to install both dependencies:
Is it possible to support both version of nikic/php-parser in psalm 5.x? Because we can only use released versions of packages in accordance with our security policies. Or maybe you can tell me when psalm v6 will be released? |
That we can update the dependency nikic/php-parser, which allow us to update phpunit and other dependencies. psalm/phar contains psalm with all dependencies bundled into it. See vimeo/psalm#10888 and vimeo/psalm#10653
A really nice workaround is using the package psalm/phar instead of vimeo/psalm. The change is also small, see here: ecamp/ecamp3#6256 |
That we can update the dependency nikic/php-parser, which allow us to update phpunit and other dependencies. psalm/phar contains psalm with all dependencies bundled into it. See vimeo/psalm#10888 and vimeo/psalm#10653
Hello,
I've been working with your package and encountered some dependency conflicts when trying to install it alongside other packages. Specifically, the conflicts arise with the versions of nikic/php-parser, amphp/amp, and amphp/byte-stream. These conflicts prevent the successful installation of the packages when certain version combinations are required by other dependencies in the project.
Issues Encountered:
The requirement for nikic/php-parser as "^4.16 || ^5.0" clashes with other packages that require different versions, leading to an unresolvable set of packages.
Error Details
Similarly, specifying amphp/amp as "^2.4.2 || ^3.0" creates conflicts with packages that have fixed requirements for either the 2.x or 3.x versions.
Error Details
The requirement for amphp/byte-stream as "^1.5 || ^2.1" also leads to installation issues, as some dependencies strictly require versions within the 1.x or 2.x ranges.
Error Details
Proposed Changes:
I propose updating the composer.json to accommodate broader compatibility with these dependencies. By allowing more flexible version constraints, we can enhance the package's compatibility with a wider range of project environments and other dependencies.
Conclusion:
These changes aim to mitigate potential conflicts with other packages requiring different versions of the same dependencies, thus facilitating smoother installation and usage alongside a broader array of packages.
I have forked the repository and made these adjustments in my branch. If you agree with these proposed changes, I would be happy to submit a pull request for your review.
Thank you for considering my proposal. I believe these changes will make [Package Name] more versatile and easier to incorporate into various projects.
Best regards,
victor