minor #42092 [Workflow] qa: add missing type-hints to workflow `Transition` (boesing)
minor #42092 [Workflow] qa: add missing type-hints to workflow `Transition` (boesing)

This PR was submitted for the 5.4 branch but it was merged into the 4.4 branch instead.

Discussion
----------

[Workflow] qa: add missing type-hints to workflow `Transition`

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | not really
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| License       | MIT

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/releases):
 - Always add tests and ensure they pass.
 - Never break backward compatibility (see https://symfony.com/bc).
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too.)
 - Features and deprecations must be submitted against branch 5.x.
 - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
-->

Hey there, I am using the `Workflow` component and realized that `Transition` lacks method type-hints. I've added a PHPDoc to reflect the return types.

If this is considered a bug fix, I can rebase against 5.3. If anything else is missing, please let me know.

Commits
-------

660037858f qa: add missing type-hints to workflow `Transition`

sgehrig/symfony,damienalexandre/symfony,hhamon/symfony,HeahDude/symfony,curry684/symfony,stof/symfony,zerkms/symfony,derrabus/symfony,ro0NL/symfony,phramz/symfony,curry684/symfony,xabbuh/symfony,xabbuh/symfony,d-ph/symfony,mpdude/symfony,stof/symfony,d-ph/symfony,symfony/symfony,phramz/symfony,phramz/symfony,damienalexandre/symfony,tucksaun/symfony,symfony/symfony,Tobion/symfony,HeahDude/symfony,paradajozsef/symfony,paradajozsef/symfony,symfony/symfony,zerkms/symfony,stof/symfony,ro0NL/symfony,mpdude/symfony,sgehrig/symfony,mpdude/symfony,curry684/symfony,tucksaun/symfony,symfony/symfony,nicolas-grekas/symfony,d-ph/symfony,paradajozsef/symfony,paradajozsef/symfony,oleg-andreyev/symfony,sgehrig/symfony,oleg-andreyev/symfony,mpdude/symfony,damienalexandre/symfony,oleg-andreyev/symfony,hhamon/symfony,zerkms/symfony,nicolas-grekas/symfony,hhamon/symfony,tucksaun/symfony,xabbuh/symfony,sgehrig/symfony,ogizanagi/symfony,zerkms/symfony,damienalexandre/symfony,ro0NL/symfony,derrabus/symfony,derrabus/symfony,HeahDude/symfony,ogizanagi/symfony,xabbuh/symfony,HeahDude/symfony,phramz/symfony,nicolas-grekas/symfony,curry684/symfony,ogizanagi/symfony,oleg-andreyev/symfony,stof/symfony,ogizanagi/symfony,Tobion/symfony,Tobion/symfony,hhamon/symfony,tucksaun/symfony,d-ph/symfony,ro0NL/symfony,derrabus/symfony,nicolas-grekas/symfony,Tobion/symfony