-
Notifications
You must be signed in to change notification settings - Fork 663
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
AMPHP 3.x support #10003
Comments
Hey @emmanuelGuiton, can you reproduce the issue on https://psalm.dev ? |
You can try https://packagist.org/packages/bamarni/composer-bin-plugin and put Psalm into a scoped bin. |
I'll give a go at upgrading to v3 this weekend, since all amp libraries used by psalm are now stable. |
@ChristophWurst I don't see how it could work since the project dependencies are autoloaded by Psalm... Any tip ?
|
Psalm should not analysis own vendor directory.
Psalm will both load my_amp_project and psalm_composer_bin_project's vendor directory, and |
I've noticed when language server launched, some log output:
This is a single psalm composer vendor, not current project, may be we can have a config to disable psalm to auto registering composer autoload. |
Started switching to amp v3 in #10024, but forgot this would raise the minimum PHP requirement for psalm up to php 8.1... |
According to packagist, we have roughly 5% of our users on 7.4 and 5% on 8.0 for Psalm 5. I think it's fine to prepare Psalm 6 to support 8.1+ |
The |
@danog Should we close this issue ? |
Hello, I wanted to get a little clarification regarding the current version of amphp/amp. I consulted the composer.json file and noticed that it still mentions version 2. Would it be possible to know if an update to version 3 is planned? This information would be a great help to me in using it with grumphp. Thank you in advance for your attention and invaluable help. |
@roukmoute / @emmanuelGuiton / everyone: to get amphp v3 support, simply require psalm v6 via |
@danog Ohhh! I realized I was on the 5.x branch rather than the master branch. Your help is greatly appreciated, thank you very much! |
@danog Any plans for the Psalm 6 release? I've been using FWIW I've seen plenty of packages bump PHP versions in minor releases. Though I understand if that's not policy here. |
As stated by @weirdan in #7307
Version 3.0 is out since December 2022 so I open a request to address the issue.
The migration guide is available at https://amphp.org/upgrade
The library is only used in Psalm's language server (
Psalm\Internal\LanguageServer
).Without migration, developers that use AMPHP 3.x in their project suffer from a conflict with Psalm's dependency on AMPHP 2.x
Degraded functionality can still be available using psalm.phar - one loses other functionalities like Psalm plugin support (such as
psalm/phpunit
).I do have the issue on a project but I am not familiar enough with Psalm's internal engine nor with AMPHP to fix it myself.
The text was updated successfully, but these errors were encountered: