Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #46671 [Workflow] Add a nice exception message when unexpected …
…data is passed to Marking (Nyholm) This PR was merged into the 6.2 branch. Discussion ---------- [Workflow] Add a nice exception message when unexpected data is passed to Marking | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | n/a During my Workshop during Symfony online, one of my attendees got an exception message they didn't really undersand. They ran ```php $this->workflow->apply($subject, 'foobar'); ``` But got the error `Marking::__construct() expects array, string passed`. Their issue was that `$subject->getPlaces()` returned a string. It was pretty hard to figure out from that exception message, so I thought we could improve. Commits ------- 2e4bd96 [Workflow] Add a nice exception message when unexpected data is passed to Marking
- Loading branch information