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
$message = sprintf('You have a "bind" configured for an argument named "%s" ', $key);
52
+
53
+
if ($type) {
54
+
$message .= BoundArgument::MESSAGES[$type];
55
+
} else {
56
+
$message .= sprintf('in service "%s"', $serviceId);
57
+
}
58
+
59
+
if ($file) {
60
+
$message .= sprintf(' in file "%s"', $file);
61
+
}
62
+
63
+
$message .= '. But, this argument was not found in any of the services it was applied to. It may be unused and can be removed, or it may have a typo.';
64
+
42
65
if ($this->errorMessages) {
43
66
$message .= sprintf("\nCould be related to%s:", 1 < \count($this->errorMessages) ? ' one of' : '');
44
67
}
@@ -48,9 +71,9 @@ public function process(ContainerBuilder $container)
48
71
thrownewInvalidArgumentException($message);
49
72
}
50
73
} finally {
51
-
$this->usedBindings = array();
52
-
$this->unusedBindings = array();
53
-
$this->errorMessages = array();
74
+
$this->usedBindings = [];
75
+
$this->unusedBindings = [];
76
+
$this->errorMessages = [];
54
77
}
55
78
}
56
79
@@ -75,12 +98,12 @@ protected function processValue($value, $isRoot = false)
0 commit comments