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

Adding newer packages versions for PHP 8+ #31

Merged
merged 4 commits into from
Mar 9, 2024

Conversation

JimTools
Copy link
Contributor

@JimTools JimTools commented Mar 4, 2024

Description
When adding the package on newer versions of PHP 8+ while PHPUnit is present the user gets an older version, this is because of conflicts with phpunit/php-text-template so Composer will serve a version where this conflict doesn't exist.

It's not a bug, but it would be nice if users could get the latest version.

Changes in the PR allow for projects with PHPUnit already installed to get the newer versions.

closes #30

Allowing newer version of dependencies for PHP 8+
reworking the Application class to get around the issue with methods not
matching the implementation
Addig correct version to analyzer sub package
Psalm is being tested with 8.3, but when infers the PHP version from the
package.json it uses 7.1 package can user new langauge features but
Psalm will throw errors when this happens.

Setting the php version resolve the errors from beenig thrown.
@scheb
Copy link
Owner

scheb commented Mar 9, 2024

Quite surprised this went through without an issue. Would you please add Symfony 7 as well? Or did you try and those didn't work?

@JimTools
Copy link
Contributor Author

JimTools commented Mar 9, 2024

@scheb it's a little difficult in v7 of symfony/config they have started to use type return on methods which is a PHP 7.4 feature. but testing this branch out on one of my projects seems fine (famous last words).

that would then force the question of whether you want to have the minimum PHP version of 7.4
devecosystem 2023

@scheb
Copy link
Owner

scheb commented Mar 9, 2024

Okay, I see the issue. Then we'll just keep it to Symfony 6. Not ideal, but better than the current status quo.

@scheb scheb merged commit 79ff0d6 into scheb:1.x Mar 9, 2024
5 checks passed
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.

Dependency Conflict Issue
2 participants