Closed azjezz closed 4 months ago
@veewee wdyt?
Shouldn't the psalm phar 'replace' vimeo/psalm? It doesn't seem to be doing this: https://github.com/psalm/phar/blob/master/composer.json
This is how we do things in grumphp-shim:
https://github.com/phpro/grumphp-shim/blob/master/composer.json#L29
It should allow to require vimeo/psalm in here and still use psalm/phar downstream
no, it seems psalm phar conflicts with the package :/ https://github.com/psalm/phar/blob/master/composer.json#L9
Describe the bug
The plugin is not installable when using
psalm/phar
instead ofvimeo/psalm
To Reproduce
Code to reproduce the behaviour: https://github.com/neutomic/neu
Expected behaviour
The plugin should be installable with the phar distribution of psalm.
Additional context
neu
usespsalm/phar
instead ofvimeo/psalm
because there's a dependency conflict withvimeo/psalm
.psalm
relies onamphp/amp
v2, whileneu
requiresamphp/amp
v3, the solution is to usepsalm/phar
, which prefixes all the dependencies, allowingneu
to useamphp/amp
v3, whilepsalm
uses v2, however,php-standard-library/psalm-plugin
requiresvimeo/psalm
as a dependency, one solution could be to movepsalm
to dev-dependencies instead, the down side of doing this is that people would be able to install the plugin with psalm v4, but this in my opinion is not an issue we should worry about.