8000 Merge branch '3.4' into 4.3 · Koc/symfony@d8a026b · GitHub
[go: up one dir, main page]

Skip to content

Commit d8a026b

Browse files
Merge branch '3.4' into 4.3
* 3.4: sync phpunit script with master
2 parents 241e2f7 + fda5b20 commit d8a026b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

phpunit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ if (!file_exists(__DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit')) {
99
}
1010
if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
1111
if (\PHP_VERSION_ID >= 70200) {
12+
if (false === getenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT') && false !== strpos(@file_get_contents(__DIR__.'/src/Symfony/Component/HttpKernel/Kernel.php'), 'const MAJOR_VERSION = 3;')) {
13+
putenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1');
14+
}
1215
putenv('SYMFONY_PHPUNIT_VERSION=8.3');
1316
} elseif (\PHP_VERSION_ID >= 70000) {
1417
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
1518
}
1619
}
20+
if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {
21+
putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=deprecations=1');
22+
}
1723
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
1824
require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';

0 commit comments

Comments
 (0)
0