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
// We only check strings and Definition, References and null values are checked elsewhere.
37
+
return;
45
38
}
46
39
}
40
+
41
+
try {
42
+
\Closure::fromCallable($factory);
43
+
} catch (\TypeError) {
44
+
thrownewIncorrectServiceClassException(\sprintf('Factory "%s" for service "%s" is invalid, please check for typos.', \is_string($factory) ? $factory : implode('::', $factory), $id));
$message = \sprintf('class "%s" defined for service "%s" does not exist.', $class, $id);
56
61
57
62
try {
58
-
\Closure::fromCallable($factory);
59
-
} catch (\TypeError) {
60
-
thrownewIncorrectServiceClassException(\sprintf('Factory "%s" for service "%s" is invalid, please check for typos.', \is_string($factory) ? $factory : implode('::', $factory), $id));
0 commit comments