Closed derrabus closed 8 months ago
Thanks for the PR 😍
Define the SYMFONY_ENDPOINT
environment variable:
# On Unix-like (BSD, Linux and macOS)
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes/flex/pull-1249/index.json
# On Windows
SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes/flex/pull-1249/index.json
Install the package(s) related to this recipe:
composer req 'symfony/flex:^1.16'
composer req 'symfony/phpunit-bridge:^6.3'
Don't forget to unset the SYMFONY_ENDPOINT
environment variable when done:
# On Unix-like (BSD, Linux and macOS)
unset SYMFONY_ENDPOINT
# On Windows
SET SYMFONY_ENDPOINT=
In order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes. I'm going keep this comment up to date with any updates of the attached patch.
Fixes #1248.
Our
bin/phpunit
calls the PHPUnit from the vendor folder, if we use Composer to install PHPUnit. Instead of callingrequire
on PHPUnit's entrypoint directly, we call internal PHPUnit classes to bootstrap the CLI runner.The reason for that was that PHPUnit's bin script contains a shebang (
#!/usr/bin/env php
) which would be output on PHP 7. On PHP 8 however, that limitation is gone and with it the reason for our workaround. Callingrequire
on PHPUnit's entrypoint makes the bin/phpunit script more resilient against future internal changes in PHPUnit and allows the script to function with PHPUnit 10.