Skip to content
Permalink
Browse files

Ignore deprecations about doctrine/persistence coming from doctrine/orm

  • Loading branch information
nicolas-grekas committed Dec 16, 2019
1 parent cfd4194 commit 9d0a705981074cef2b80faa4646de491b6357b8b
Showing with 10 additions and 0 deletions.
  1. +10 −0 phpunit
10 phpunit
@@ -21,4 +21,14 @@ if (!getenv('SYMFONY_PATCH_TYPE_DECLARATIONS')) {
putenv('SYMFONY_PATCH_TYPE_DECLARATIONS=deprecations=1');
}
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');

if (!getenv('SYMFONY_DEPRECATIONS_HELPER')) {
foreach ($_SERVER['argv'] as $v) {
if (false !== strpos($v, 'Bridge/Doctrine')) {
putenv('SYMFONY_DEPRECATIONS_HELPER=max[indirect]=7');
break;
}
}
}

require __DIR__.'/vendor/symfony/phpunit-bridge/bin/simple-phpunit';

0 comments on commit 9d0a705

Please sign in to comment.
You can’t perform that action at this time.