Skip to content

Commit

Permalink
Merge pull request #2619 from hethehe/patch-10
Browse files Browse the repository at this point in the history
Notification Rules doesn't have state/transitions in DEV mode
  • Loading branch information
dpfaffenbauer committed Apr 23, 2024
2 parents c4f5cc1 + 42cd624 commit 207541b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Workflow\StateMachine;
use Symfony\Component\Workflow\WorkflowInterface;
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
use Symfony\Contracts\Service\Attribute\SubscribedService;

Expand All @@ -85,7 +85,7 @@ public function getStatesAction(Request $request): Response
$stateMachine = null;

foreach ($worklows as $workflow) {
if (!$workflow instanceof StateMachine) {
if (!$workflow instanceof WorkflowInterface) {
continue;
}

Expand Down

0 comments on commit 207541b

Please sign in to comment.