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
if (!\is_callable($callable) || !method_exists($value, $toStringMethod)) {
198
+
thrownew \RuntimeException(sprintf('The method "%s()" does not exist or is not callable in the value of type "%s"', $toStringMethod, \is_object($value) ? $value::class : \gettype($value)));
199
+
}
200
+
201
+
return\call_user_func($callable);
193
202
}
194
203
195
-
$callable = [$value, $toStringMethod];
196
-
if (!\is_callable($callable) || !method_exists($value, $toStringMethod)) {
197
-
thrownew \RuntimeException(sprintf('The method "%s()" does not exist or is not callable in the value of type "%s"', $toStringMethod, \is_object($value) ? $value::class : \gettype($value)));
0 commit comments