Description
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
- Magento 2 Open Source 2.4.2
- Psalm latest version (vimeo/psalm 4.7.0)
Steps to reproduce
- Install Magento 2 Open Source 2.4.2
- Install Psalm
Expected result
- 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