Skip to content

Commit

Permalink
[BUGFIX] Force correct type in FormViewHelper
Browse files Browse the repository at this point in the history
Add several type casts to avoid notices.

Resolves: #101486
Releases: main, 12.4, 11.5
Signed-off-by: Torben Hansen <derhansen@gmail.com>
Change-Id: I87f02e129d91ae9902ad74f306f11915d12037b0
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80246
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
derhansen authored and lolli42 committed Jul 30, 2023
1 parent 96695f1 commit e084598
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php
Expand Up @@ -208,10 +208,10 @@ protected function setFormActionUri()
$uriBuilder = $this->renderingContext->getUriBuilder();
$uriBuilder
->reset()
->setTargetPageType($this->arguments['pageType'] ?? 0)
->setNoCache($this->arguments['noCache'] ?? false)
->setTargetPageType((int)($this->arguments['pageType'] ?? 0))
->setNoCache((bool)($this->arguments['noCache'] ?? false))
->setSection($this->arguments['section'] ?? '')
->setCreateAbsoluteUri($this->arguments['absolute'] ?? false)
->setCreateAbsoluteUri((bool)($this->arguments['absolute'] ?? false))
->setArguments(isset($this->arguments['additionalParams']) ? (array)$this->arguments['additionalParams'] : [])
->setAddQueryString($this->arguments['addQueryString'] ?? false)
->setArgumentsToBeExcludedFromQueryString(isset($this->arguments['argumentsToBeExcludedFromQueryString']) ? (array)$this->arguments['argumentsToBeExcludedFromQueryString'] : [])
Expand Down

0 comments on commit e084598

Please sign in to comment.