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('for service "%s"', $serviceId);
65
+
}
66
+
67
+
if ($file) {
68
+
$message .= sprintf(' in file "%s"', $file);
69
+
}
70
+
71
+
$message = sprintf('A binding is configured for an argument %s, but no corresponding argument has been found. It may be unused and should be removed, or it may have a typo.', $message);
72
+
42
73
if ($this->errorMessages) {
43
74
$message .= sprintf("\nCould be related to%s:", 1 < \count($this->errorMessages) ? ' one of' : '');
44
75
}
@@ -75,12 +106,12 @@ protected function processValue($value, $isRoot = false)
@@ -35,7 +38,8 @@ final public function bind($nameOrFqcn, $valueOrRef)
35
38
thrownewInvalidArgumentException(sprintf('Invalid binding for service "%s": named arguments must start with a "$", and FQCN must map to references. Neither applies to binding "%s".', $this->id, $nameOrFqcn));
* @expectedExceptionMessage Unused binding "$quz" in service "Symfony\Component\DependencyInjection\Tests\Fixtures\NamedArgumentsDummy".
53
+
* @expectedExceptionMessage A binding is configured for an argument named "$quz" for service "Symfony\Component\DependencyInjection\Tests\Fixtures\NamedArgumentsDummy", but no corresponding argument has been found. It may be unused and should be removed, or it may have a typo.
0 commit comments