Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 41158b8

Browse files
committed
[PhpUnitBridge] Fix disabling DeprecationErrorHandler from phpunit configuration file
1 parent aa5ec20 commit 41158b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@
146146
}
147147
}
148148

149+
if ('disabled' === $getEnvVar('SYMFONY_DEPRECATIONS_HELPER')) {
150+
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
151+
}
152+
149153
$COMPOSER = file_exists($COMPOSER = $oldPwd.'/composer.phar')
150154
|| ($COMPOSER = rtrim('\\' === \DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer.phar`) : `which composer.phar 2> /dev/null`))
151155
|| ($COMPOSER = rtrim('\\' === \DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', `where.exe composer`) : `which composer 2> /dev/null`))

0 commit comments

Comments
 (0)