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
@@ -716,6 +716,10 @@ private function addNewInstance(Definition $definition, $return, $instantiation)
716
716
$class = $this->dumpValue($callable[0]);
717
717
// If the class is a string we can optimize call_user_func away
718
718
if (strpos($class, "'") === 0) {
719
+
if ("''" === $class) {
720
+
thrownewRuntimeException(sprintf('Cannot dump definition: The "%s" service is defined to be created by a factory but is missing the service reference, did you forget to define the factory service id or class?', $id));
0 commit comments