Re-enable triggering deprecations about return types

This commit is contained in:
Nicolas Grekas 2021-02-10 22:38:35 +01:00
parent 7c86c1d593
commit 01ac9b1990
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
putenv('SYMFONY_PHPUNIT_VERSION=9.5');
}
}
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS') && \PHP_VERSION_ID >= 70200) {
putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=deprecations=1');
}
if (getcwd() === realpath(__DIR__.'/src/Symfony/Bridge/PhpUnit')) {
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
}