Skip to content

MFTF blocks Psalm installing by its dependency #828

Open
@angel-rsa

Description

@angel-rsa

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions