Skip to content
Browse files

Use a more appropriate group when deprecating mode

The deprecation comes from a vendor: the phpunit bridge itself, so it's
either the direct or the indirect group. And since only the end user is
supposed to set the group, then this is supposed to be a direct
  • Loading branch information...
greg0ire committed May 30, 2019
1 parent f9beee7 commit 3a88f11662e9bdd8cc22be25831ac0839b40688e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php
@@ -228,9 +228,9 @@ private function getConfiguration()
return $this->configuration = Configuration::inWeakMode();
if (self::MODE_WEAK_VENDORS === $mode) {
++$this->deprecations['remaining selfCount'];
++$this->deprecations['remaining directCount'];
$msg = sprintf('Setting SYMFONY_DEPRECATIONS_HELPER to "%s" is deprecated in favor of "max[self]=0"', $mode);
$ref = &$this->deprecations['remaining self'][$msg]['count'];
$ref = &$this->deprecations['remaining direct'][$msg]['count'];
$mode = 'max[self]=0';

0 comments on commit 3a88f11

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