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

Skip to content

[PHPUnit Bridge] Inappropriate prompt when using simple-phpunit #60642

Closed
@michaelthieulin

Description

@michaelthieulin

Symfony version(s) affected

7.3.0

Description

Since prompt suggesting using --dev has been added in composer 2.4.0, simple-phpunit displays a prompt asking to move the required package into require-dev. This is mainly annoying in CI.

Image

How to reproduce

Composer version 2.8.9 2025-05-13 14:01:37
PHP version 8.4.7

  1. Create a new project : symfony new bug
  2. cd bug && composer require --dev symfony/phpunit-bridge
  3. ./vendor/bin/simple-phpunit

You can see the prompt asking to move the required package in require-dev because it is tagged as "testing".

Possible Solution

No response

Additional Context

No response

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