Skip to content

phpunit-bridge compatibility with phpunit v7.* #26931

Closed
@juliendufresne

Description

@juliendufresne
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0.*

Since this commit of PHPUnit, PHPUnit has added return types to some methods.

This causes some compatibility issue when using PHPUnit version 7 or later and symfony/phpunit-bridge.

For example, the method Symfony\Bridge\PhpUnit\TextUI\Command::createRunner() does not specify the return type.

Output of `SYMFONY_PHPUNIT_VERSION=7.0 php vendor/bin/simple-phpunit`

PHP Fatal error: Declaration of Symfony\Bridge\PhpUnit\TextUI\Command::createRunner() must be compatible with PHPUnit\TextUI\Command::createRunner(): PHPUnit\TextUI\TestRunner in <path>/vendor/symfony/phpunit-bridge/TextUI/Command.php on line 24

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