Commit 16389f6
committed
bug #62685 [DependencyInjection] Fix
This PR was merged into the 7.3 branch.
Discussion
----------
[DependencyInjection] Fix `PriorityTaggedServiceTrait` when tag attributes are not a list
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
Alternative to #62683
Ensure the attributes of the tag are in a list before iterating on them using sequential indexes.
> In symfony/monolog-bundle#485, the tag attributes are filtered, which generates gaps in the keys. The PR mentioned above causes MonologBundle to fail. This can be fixed by symfony/monolog-bundle#563. However I believe the issue should also be addressed in Symfony.
Commits
-------
5a4a036 [DependencyInjection] Fix PriorityTaggedServiceTrait when tag attributes are not a listPriorityTaggedServiceTrait when tag attributes are not a list (GromNaN)File tree
2 files changed
+16
-0
lines changed- src/Symfony/Component/DependencyInjection
- Compiler
- Tests/Compiler
2 files changed
+16
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
452 | 467 | | |
453 | 468 | | |
454 | 469 | | |
| |||
0 commit comments