From fb60f514c22e80683b38e48e1ef0613c3a2fd667 Mon Sep 17 00:00:00 2001 From: James Hynes Date: Tue, 9 May 2023 15:35:31 +1000 Subject: [PATCH] Remove the return statement from the filterCallable method - L#139 would never have worked with this set up the way it is as it is returning an array. --- src/SM/Callback/Callback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SM/Callback/Callback.php b/src/SM/Callback/Callback.php index 8ffdb19..23f8b54 100644 --- a/src/SM/Callback/Callback.php +++ b/src/SM/Callback/Callback.php @@ -125,7 +125,7 @@ protected function isSatisfiedByClause(string $clause, string $value): bool * * @return callable */ - protected function filterCallable($callable, TransitionEvent $event): callable + protected function filterCallable($callable, TransitionEvent $event) { if (is_array($callable) && isset($callable[0]) && is_string($callable[0]) && 'object' === substr($callable[0], 0, 6)) { $object = $event->getStateMachine()->getObject();