@@ -55,7 +55,7 @@ private function parseViewHelperContext(ViewHelperContext $viewHelperContext): v
5555 $ pluginName = $ arguments ['pluginName ' ] ?? null ;
5656 $ extensionName = $ arguments ['extensionName ' ] ?? null ;
5757 $ contextRecord = $ arguments ['contextRecord ' ];
58- $ additionalParams = $ arguments ['additionalParams ' ];
58+ $ additionalParams = $ arguments ['additionalParams ' ] ?? [] ;
5959 $ renderingPath = $ arguments ['typoscriptObjectPath ' ] ?? null ;
6060
6161 if ($ pluginName === null ) {
@@ -95,8 +95,10 @@ private function parseViewHelperContext(ViewHelperContext $viewHelperContext): v
9595 ->setAddQueryString ($ arguments ['addQueryString ' ] ?? false )
9696 ->setAddQueryStringMethod ('GET ' )
9797 ->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 );
100102 }
101103
102104 $ this ->parseUri (
@@ -124,7 +126,7 @@ private function parseWidgetContext(ViewHelperContext $viewHelperContext): void
124126 $ pluginName = $ arguments ['pluginName ' ] ?? null ;
125127 $ extensionName = $ arguments ['extensionName ' ] ?? null ;
126128 $ contextRecord = $ arguments ['contextRecord ' ];
127- $ additionalParams = $ arguments ['additionalParams ' ];
129+ $ additionalParams = $ arguments ['additionalParams ' ] ?? [] ;
128130 $ renderingPath = $ arguments ['typoscriptObjectPath ' ] ?? null ;
129131
130132 if ($ pluginName === null ) {
@@ -167,8 +169,10 @@ private function parseWidgetContext(ViewHelperContext $viewHelperContext): void
167169 ->setAddQueryString (true )
168170 ->setAddQueryStringMethod ('GET ' )
169171 ->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 );
172176 }
173177
174178 $ uri = $ uriBuilder ->build ();
0 commit comments