Commit 2471df3
committed
minor symfony#61723 [HttpKernel] Refine
This PR was merged into the 7.4 branch.
Discussion
----------
[HttpKernel] Refine `ControllerEvent::getAttributes()` and `ControllerArgumentsEvent::getAttributes()` return types
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | Fix symfony#61722
| License | MIT
The return type for the `Symfony\Component\HttpKernel\Event\ControllerEvent::getAttributes()` method is refined so that when the `$className` argument is passed, the return type matches the passed list of objects of the passed class.
Commits
-------
533abf4 [HttpKernel] Refine ControllerEvent::getAttributes() and ControllerArgumentsEvent::getAttributes() return typesControllerEvent::getAttributes() and ControllerArgumentsEvent::getAttributes() return types (7-zete-7)File tree
2 files changed
+6
-10
lines changed- src/Symfony/Component/HttpKernel/Event
2 files changed
+6
-10
lines changedLines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 104 | + | |
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
| |||
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
| 86 | + | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
0 commit comments