magento / magento/magento2-functional-testing-framework
MFTF blocks Psalm installing by its dependency
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 154
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
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
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the MFTF dependency declaration for nikic/php-parser and compare its ~4.4.0 constraint with Psalm 4.7.0's ^4.10.1 requirement. Reproduce the Composer installation conflict described in the issue; done means Psalm can be installed alongside MFTF without an unresolved nikic/php-parser dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100