Skip to content

Commit 2a6baaf

Browse files
Remove deprecated code paths that trigger a runtime notice
1 parent 04729e9 commit 2a6baaf

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
5.0.0
5+
-----
6+
7+
* removed `weak_vendor` mode, use `max[self]=0` instead
8+
49
4.3.0
510
-----
611

DeprecationErrorHandler.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
*/
2222
class DeprecationErrorHandler
2323
{
24-
/**
25-
* @deprecated since Symfony 4.3, use max[self]=0 instead
26-
*/
27-
const MODE_WEAK_VENDORS = 'weak_vendors';
28-
2924
const MODE_DISABLED = 'disabled';
3025
const MODE_WEAK = 'max[total]=999999&verbose=0';
3126
const MODE_STRICT = 'max[total]=0';
@@ -227,13 +222,6 @@ private function getConfiguration()
227222
if ('weak' === $mode) {
228223
return $this->configuration = Configuration::inWeakMode();
229224
}
230-
if (self::MODE_WEAK_VENDORS === $mode) {
231-
++$this->deprecations['remaining directCount'];
232-
$msg = sprintf('Setting SYMFONY_DEPRECATIONS_HELPER to "%s" is deprecated in favor of "max[self]=0"', $mode);
233-
$ref = &$this->deprecations['remaining direct'][$msg]['count'];
234-
++$ref;
235-
$mode = 'max[self]=0';
236-
}
237225
if (isset($mode[0]) && '/' === $mode[0]) {
238226
return $this->configuration = Configuration::fromRegex($mode);
239227
}

0 commit comments

Comments
 (0)