Skip to content

Commit 18c7edd

Browse files
minor symfony#44642 [Workflow] Fix Event constructor requirements (lyrixx)
This PR was merged into the 5.3 branch. Discussion ---------- [Workflow] Fix Event constructor requirements | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | This has already been deprecied in 4.x But while cleaning the 5.x branch, I forgot to apply this patch See https://github.com/symfony/symfony/pull/31824/files#diff-5f386ffb0109cc731bd98e63eea021b32faadd98791bd6ba65926d09c5e2ec40L37 More over, `Event::getWorkflow()` has the correct return type. Commits ------- acc1cdb [Workflow] Fix Event constructor requirements
2 parents e5d3dea + acc1cdb commit 18c7edd

File tree

1 file changed

+1
-1
lines changed
  • src/Symfony/Component/Workflow/Event

1 file changed

+1
-1
lines changed

src/Symfony/Component/Workflow/Event/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Event extends BaseEvent
2929
private $transition;
3030
private $workflow;
3131

32-
public function __construct(object $subject, Marking $marking, Transition $transition = null, WorkflowInterface $workflow = null, array $context = [])
32+
public function __construct(object $subject, Marking $marking, Transition $transition = null, WorkflowInterface $workflow, array $context = [])
3333
{
3434
$this->subject = $subject;
3535
$this->marking = $marking;

0 commit comments

Comments
 (0)