Skip to content

bin/phpunit doesn't work with the new recipe #41471

@mmarton

Description

@mmarton

Symfony version(s) affected: 5.3.*

Description
I've already posted this at the recipes repo a month ago, but didn't got any attention.
symfony/recipes#936

How to reproduce
Using symfony 5.3 with phpunit 9.5. bin/phpunit tries to require vendor/phpunit/phpunit/phpunit.

https://github.com/symfony/recipes/blob/master/symfony/phpunit-bridge/5.3/bin/phpunit#L4

But that fails with:

Fatal error: strict_types declaration must be the very first statement in the script in /var/www/html/vendor/phpunit/phpunit/phpunit on line 2

looks like importing a file which has booth declare() AND an interpreter (#!/usr/bin/env ) fatals out.
might be a php bug idk

https://github.com/sebastianbergmann/phpunit/blob/9.5/phpunit#L1

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