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
deprecation.
This commit is contained in:
Grégoire Paris 2019-05-30 10:57:55 +02:00
parent f9beee7424
commit 3a88f11662
No known key found for this signature in database
GPG Key ID: 24D48B8012B116BF

View File

@ -228,9 +228,9 @@ class DeprecationErrorHandler
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'];
++$ref;
$mode = 'max[self]=0';
}