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
@@ -31,7 +31,7 @@ public function getMetadata(string $key, $subject = null)
31
31
returnnull;
32
32
}
33
33
34
-
return$metadataBag->get($key);
34
+
return$metadataBag[$key] ?? null;
35
35
}
36
36
37
37
if ($subjectinstanceof Transition) {
@@ -40,7 +40,7 @@ public function getMetadata(string $key, $subject = null)
40
40
returnnull;
41
41
}
42
42
43
-
return$metadataBag->get($key);
43
+
return$metadataBag[$key] ?? null;
44
44
}
45
45
46
46
thrownewInvalidArgumentException(sprintf('Could not find a MetadataBag for the subject of type "%s".', is_object($subject) ? get_class($subject) : gettype($subject)));
0 commit comments