Commit 21c101f
committed
bug #62515 [FrameworkBundle] Allow backed enum to be used in initial_marking workflow configuration (DemonTPx)
This PR was squashed before being merged into the 7.4 branch.
Discussion
----------
[FrameworkBundle] Allow backed enum to be used in initial_marking workflow configuration
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
I've tried using workflows with an enum, following this article: https://symfony.com/blog/new-in-symfony-7-4-misc-features-part-2#enum-support-in-workflows
The `initial_marking` configuration did not support it yet with this error:
```
Invalid type for path "framework.workflows.workflows.comment.initial_marking.0". Expected "scalar", but got "App\Entity\CommentState".
```
This change seems to fix it!
Commits
-------
3fb92ca8982 [FrameworkBundle] Allow backed enum to be used in initial_marking workflow configurationFile tree
2 files changed
+15
-1
lines changed- DependencyInjection
- Tests/DependencyInjection
2 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
467 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
468 | 479 | | |
469 | 480 | | |
470 | 481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| 714 | + | |
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
| |||
728 | 729 | | |
729 | 730 | | |
730 | 731 | | |
| 732 | + | |
| 733 | + | |
731 | 734 | | |
732 | 735 | | |
733 | 736 | | |
| |||
0 commit comments