@@ -55,7 +55,7 @@ private function parseViewHelperContext(ViewHelperContext $viewHelperContext): v
55
55
$ pluginName = $ arguments ['pluginName ' ] ?? null ;
56
56
$ extensionName = $ arguments ['extensionName ' ] ?? null ;
57
57
$ contextRecord = $ arguments ['contextRecord ' ];
58
- $ additionalParams = $ arguments ['additionalParams ' ];
58
+ $ additionalParams = $ arguments ['additionalParams ' ] ?? [] ;
59
59
$ renderingPath = $ arguments ['typoscriptObjectPath ' ] ?? null ;
60
60
61
61
if ($ pluginName === null ) {
@@ -95,8 +95,10 @@ private function parseViewHelperContext(ViewHelperContext $viewHelperContext): v
95
95
->setAddQueryString ($ arguments ['addQueryString ' ] ?? false )
96
96
->setAddQueryStringMethod ('GET ' )
97
97
->setArgumentsToBeExcludedFromQueryString ($ arguments ['argumentsToBeExcludedFromQueryString ' ] ?? []);
98
- if (MathUtility::canBeInterpretedAsInteger ($ arguments ['pageUid ' ])) {
99
- $ uriBuilder ->setTargetPageUid ((int )$ arguments ['pageUid ' ]);
98
+
99
+ $ targetPageUid = $ arguments ['pageUid ' ] ?? null ;
100
+ if (MathUtility::canBeInterpretedAsInteger ($ targetPageUid )) {
101
+ $ uriBuilder ->setTargetPageUid ((int )$ targetPageUid );
100
102
}
101
103
102
104
$ this ->parseUri (
@@ -124,7 +126,7 @@ private function parseWidgetContext(ViewHelperContext $viewHelperContext): void
124
126
$ pluginName = $ arguments ['pluginName ' ] ?? null ;
125
127
$ extensionName = $ arguments ['extensionName ' ] ?? null ;
126
128
$ contextRecord = $ arguments ['contextRecord ' ];
127
- $ additionalParams = $ arguments ['additionalParams ' ];
129
+ $ additionalParams = $ arguments ['additionalParams ' ] ?? [] ;
128
130
$ renderingPath = $ arguments ['typoscriptObjectPath ' ] ?? null ;
129
131
130
132
if ($ pluginName === null ) {
@@ -167,8 +169,10 @@ private function parseWidgetContext(ViewHelperContext $viewHelperContext): void
167
169
->setAddQueryString (true )
168
170
->setAddQueryStringMethod ('GET ' )
169
171
->setArgumentsToBeExcludedFromQueryString ($ arguments ['argumentsToBeExcludedFromQueryString ' ] ?? []);
170
- if (MathUtility::canBeInterpretedAsInteger ($ arguments ['pageUid ' ])) {
171
- $ uriBuilder ->setTargetPageUid ((int )$ arguments ['pageUid ' ]);
172
+
173
+ $ targetPageUid = $ arguments ['pageUid ' ] ?? null ;
174
+ if (MathUtility::canBeInterpretedAsInteger ($ targetPageUid )) {
175
+ $ uriBuilder ->setTargetPageUid ((int )$ targetPageUid );
172
176
}
173
177
174
178
$ uri = $ uriBuilder ->build ();
0 commit comments