Skip to content

Commit 4c02cf1

Browse files
committed
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.
1 parent 7bfc1b5 commit 4c02cf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DeprecationErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ private function getConfiguration()
228228
return $this->configuration = Configuration::inWeakMode();
229229
}
230230
if (self::MODE_WEAK_VENDORS === $mode) {
231-
++$this->deprecations['remaining selfCount'];
231+
++$this->deprecations['remaining directCount'];
232232
$msg = sprintf('Setting SYMFONY_DEPRECATIONS_HELPER to "%s" is deprecated in favor of "max[self]=0"', $mode);
233-
$ref = &$this->deprecations['remaining self'][$msg]['count'];
233+
$ref = &$this->deprecations['remaining direct'][$msg]['count'];
234234
++$ref;
235235
$mode = 'max[self]=0';
236236
}

0 commit comments

Comments
 (0)