Skip to content

Commit f8d75b4

Browse files
[FrameworkBundle][PhpUnitBridge] Configure doctrine/deprecations as expected
1 parent 0a600f5 commit f8d75b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: bin/simple-phpunit.php

+5
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@
151151
putenv('SYMFONY_DEPRECATIONS_HELPER=disabled');
152152
}
153153

154+
if (!$getEnvVar('DOCTRINE_DEPRECATIONS')) {
155+
putenv('DOCTRINE_DEPRECATIONS=trigger');
156+
$_SERVER['DOCTRINE_DEPRECATIONS'] = $_ENV['DOCTRINE_DEPRECATIONS'] = 'trigger';
157+
}
158+
154159
$COMPOSER = ($COMPOSER = getenv('COMPOSER_BINARY'))
155160
|| file_exists($COMPOSER = $oldPwd.'/composer.phar')
156161
|| ($COMPOSER = rtrim((string) ('\\' === \DIRECTORY_SEPARATOR ? preg_replace('/[\r\n].*/', '', shell_exec('where.exe composer.phar 2> NUL')) : shell_exec('which composer.phar 2> /dev/null'))))

0 commit comments

Comments
 (0)