File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
src/Symfony/Component/HttpKernel/EventListener Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,13 @@ public function onKernelRequest(RequestEvent $event): void
117
117
$ attributes = [];
118
118
119
119
foreach ($ parameters as $ parameter => $ value ) {
120
- if (isset ($ mapping [$ parameter ])) {
121
- if (is_array ($ mapping [$ parameter ])) {
122
- [$ attribute , $ parameter ] = $ mapping [$ parameter ];
123
- $ mappedAttributes [$ attribute ] = '' ;
124
- } else {
125
- $ attribute = $ mapping [$ parameter ];
126
- }
127
-
128
- } else {
120
+ if (!isset ($ mapping [$ parameter ])) {
129
121
$ attribute = $ parameter ;
122
+ } elseif (\is_array ($ mapping [$ parameter ])) {
123
+ [$ attribute , $ parameter ] = $ mapping [$ parameter ];
124
+ $ mappedAttributes [$ attribute ] = '' ;
125
+ } else {
126
+ $ attribute = $ mapping [$ parameter ];
130
127
}
131
128
132
129
if (!isset ($ mappedAttributes [$ attribute ])) {
You can’t perform that action at this time.
0 commit comments