diff --git a/composer.json b/composer.json index 469c30715f775..f6d846858b15e 100644 --- a/composer.json +++ b/composer.json @@ -134,6 +134,7 @@ "masterminds/html5": "^2.6", "monolog/monolog": "^1.25.1|^2", "nyholm/psr7": "^1.0", + "nikic/php-parser": "^4.13", "pda/pheanstalk": "^4.0", "php-http/httplug": "^1.0|^2.0", "php-http/message-factory": "^1.0", diff --git a/phpunit b/phpunit index 3ab931750e179..3811e2b50f632 100755 --- a/phpunit +++ b/phpunit @@ -23,4 +23,5 @@ if (getcwd() === realpath(__DIR__.'/src/Symfony/Bridge/PhpUnit')) { putenv('SYMFONY_DEPRECATIONS_HELPER=disabled'); } putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit'); +putenv('SYMFONY_PHPUNIT_REQUIRE=nikic/php-parser:^4.13'); require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';