Skip to content

Commit 694e46f

Browse files
Merge branch '4.3' into 4.4
* 4.3: [Workflow] Simplified EventDispatcherMock. [Routing] revert the return type for UrlGeneratorInterface::generate to remove null
2 parents a8b1788 + d172024 commit 694e46f

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

Tests/WorkflowTest.php

+1-29
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public function testGetEnabledTransitionsWithSameNameTransition()
572572
}
573573
}
574574

575-
class EventDispatcherMock implements \Symfony\Component\EventDispatcher\EventDispatcherInterface
575+
class EventDispatcherMock implements \Symfony\Contracts\EventDispatcher\EventDispatcherInterface
576576
{
577577
public $dispatchedEvents = [];
578578

@@ -582,32 +582,4 @@ public function dispatch($event, string $eventName = null): Event
582582

583583
return $event;
584584
}
585-
586-
public function addListener($eventName, $listener, $priority = 0)
587-
{
588-
}
589-
590-
public function addSubscriber(\Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber)
591-
{
592-
}
593-
594-
public function removeListener($eventName, $listener)
595-
{
596-
}
597-
598-
public function removeSubscriber(\Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber)
599-
{
600-
}
601-
602-
public function getListeners($eventName = null): array
603-
{
604-
}
605-
606-
public function getListenerPriority($eventName, $listener): ?int
607-
{
608-
}
609-
610-
public function hasListeners($eventName = null): bool
611-
{
612-
}
613585
}

0 commit comments

Comments
 (0)