magento/magento2-functional-testing-framework

MFTF blocks Psalm installing by its dependency

angel-rsa opened this issue · 5 comments

I am trying to install Psalm on top of Magento 2.4.2 with MFTF and am facing dependency incompatibility (package nikic/php-parser)

Preconditions

  1. Magento 2 Open Source 2.4.2
  2. Psalm latest version (vimeo/psalm 4.7.0)

Steps to reproduce

  1. Install Magento 2 Open Source 2.4.2
  2. Install Psalm

Expected result

  1. Have Psalm installed in the project

Actual result

`
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for vimeo/psalm ^4.7 -> satisfiable by vimeo/psalm[4.7.0].
- Conclusion: remove nikic/php-parser v4.4.0
- Conclusion: don't install nikic/php-parser v4.4.0
- vimeo/psalm 4.7.0 requires nikic/php-parser ^4.10.1 -> satisfiable by nikic/php-parser[v4.10.1, v4.10.2, v4.10.3, v4.10.4].
- Can only install one of: nikic/php-parser[v4.10.1, v4.4.0].
- Can only install one of: nikic/php-parser[v4.10.2, v4.4.0].
- Can only install one of: nikic/php-parser[v4.10.3, v4.4.0].
- Can only install one of: nikic/php-parser[v4.10.4, v4.4.0].
- Installation request for nikic/php-parser (locked at v4.4.0) -> satisfiable by nikic/php-parser[v4.4.0].

Installation failed, reverting ./composer.json to its original content.
`

MFTF requires nikic/php-parser nikic/php-parser ~4.4.0
but
Psalm requires nikic/php-parser ^4.10.1

Hi @angel-rsa. Thank you for your report.
To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this


jilu1 commented

@angel-rsa
Dependency problem is possible if you are using newer version of modules. Have you tried to go back to earlier version of Psalm?

composer require --dev psalm/phar

poke @FredericMartinez

composer require --dev psalm/phar yes

This issue should be closed