Skip to content

Phing 3.* and PHPUnit 12.* impossible to use together #1914

@zablose

Description

@zablose

Phing 3.0.1 impossible to use in a project with PHPUnit 12.1.2.
Getting these errors on composer update:

Problem 1
    - Root composer.json requires phing/phing ^3.0.1 -> satisfiable by phing/phing[3.0.1].
    - Root composer.json requires phpunit/phpunit ^12.1.2 -> satisfiable by phpunit/phpunit[12.1.2].
    - phing/phing 3.0.1 requires sebastian/version ^3.0|^4.0|^5.0 -> satisfiable by sebastian/version[3.0.0, 3.0.1, 3.0.2, 4.0.0, 4.0.1, 5.0.0, 5.0.1, 5.0.2].
    - phpunit/phpunit 12.1.2 requires sebastian/version ^6.0.0 -> satisfiable by sebastian/version[6.0.0].
    - sebastian/version 3.0.0 requires php ^7.3 -> your php version (8.4.5) does not satisfy that requirement.
    - You can only install one version of a package, so only one of these can be installed: sebastian/version[3.0.0, 3.0.1, 3.0.2, 4.0.0, 4.0.1, 5.0.0, 5.0.1, 5.0.2, 6.0.0].

Oddly enough, when I use older version of Phing 2.17.4 - all is good.

Probably, sebastian/version is missing ^6.0 in composer.json file:

"require": {
        ...
        "sebastian/version": "^3.0|^4.0|^5.0",
        ...
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions