Thanks to visit codestin.com
Credit goes to github.com

Skip to content

phpunit bridge broken with composer v2 #37601

Closed
@GrahamCampbell

Description

@GrahamCampbell

Symfony version(s) affected: 5.1.2 (for example)

Description
https://github.com/symfony/phpunit-bridge/blob/v5.1.2/bin/simple-phpunit.php#L190 assumes that dev versions with have a count of exactly one version. This is not the case in general (stable versions might have no dev branch and only one tag), and in particular, in composer v2, 9.3.* has two dev versions printed, which means that line 191 is not executed when it was meant to be.

How to reproduce
PHPUNIT_VERSION=9.3

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