Closed
Description
Symfony version(s) affected: 4.1.x
Description
$event = new \Symfony\Component\Workflow\Event($subject, $marking, $transition);
This previously was an authorized usage. With 4.1 it now fails. But the last (and missing here) arg is still optional while it generates the throw of an exception.
This is due to this commit.
Possible Solution
I thinks something's wrong with the exception InvalidArgumentException
, I suggest to remove it for now and adding it in 5.0.
symfony/src/Symfony/Component/Workflow/Event/Event.php
Lines 38 to 51 in bd1f2c8