Skip to content

Commit 19612b2

Browse files
committed
[DI][FrameworkBundle] Remove whitelist occurrences
1 parent ea20119 commit 19612b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ContainerBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,9 +1176,9 @@ private function createService(Definition $definition, array &$inlineServices, $
11761176
$service = null === $r->getConstructor() ? $r->newInstance() : $r->newInstanceArgs($arguments);
11771177
// don't trigger deprecations for internal uses
11781178
// @deprecated since version 3.3, to be removed in 4.0 along with the deprecated class
1179-
$deprecationWhitelist = ['event_dispatcher' => ContainerAwareEventDispatcher::class];
1179+
$deprecationAllowlist = ['event_dispatcher' => ContainerAwareEventDispatcher::class];
11801180

1181-
if (!$definition->isDeprecated() && 0 < strpos($r->getDocComment(), "\n * @deprecated ") && (!isset($deprecationWhitelist[$id]) || $deprecationWhitelist[$id] !== $class)) {
1181+
if (!$definition->isDeprecated() && 0 < strpos($r->getDocComment(), "\n * @deprecated ") && (!isset($deprecationAllowlist[$id]) || $deprecationAllowlist[$id] !== $class)) {
11821182
@trigger_error(sprintf('The "%s" service relies on the deprecated "%s" class. It should either be deprecated or its implementation upgraded.', $id, $r->name), E_USER_DEPRECATED);
11831183
}
11841184
}

0 commit comments

Comments
 (0)