You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -40,7 +40,7 @@ protected function processValue($value, $isRoot = false)
40
40
continue;
41
41
}
42
42
ksort($attributes);
43
-
if (array() !== array_diff(array_keys($attributes), array('id', 'key'))) {
43
+
if ([] !== array_diff(array_keys($attributes), ['id', 'key'])) {
44
44
thrownewInvalidArgumentException(sprintf('The "container.service_subscriber" tag accepts only the "key" and "id" attributes, "%s" given for service "%s".', implode('", "', array_keys($attributes)), $this->currentId));
45
45
}
46
46
if (!array_key_exists('id', $attributes)) {
@@ -64,7 +64,7 @@ protected function processValue($value, $isRoot = false)
if (!\is_string($type) || !preg_match('/^\??[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+(?:\\\\[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+)*+$/', $type)) {
@@ -93,7 +93,7 @@ protected function processValue($value, $isRoot = false)
93
93
thrownewInvalidArgumentException(sprintf('Service %s not exist in the map returned by "%s::getSubscribedServices()" for service "%s".', $message, $class, $this->currentId));
0 commit comments