diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php index fc80b88b6c84cefdaac8d4f6d3bc17a0f6a5fc77..6ff8ccd93f00438c246e1e682724f2fc89c508b2 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Form/SelectViewHelper.php @@ -146,8 +146,9 @@ class SelectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFie } // save the parent field name so that any child f:form.select.option // tag will know to call registerFieldNameForFormTokenGeneration + // this is the reason why "self::class" is used instead of static::class (no LSB) $this->viewHelperVariableContainer->addOrUpdate( - static::class, + self::class, 'registerFieldNameForFormTokenGeneration', $name ); @@ -155,12 +156,12 @@ class SelectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFie $this->registerFieldNameForFormTokenGeneration($name); } - $this->viewHelperVariableContainer->addOrUpdate(static::class, 'selectedValue', $this->getSelectedValue()); + $this->viewHelperVariableContainer->addOrUpdate(self::class, 'selectedValue', $this->getSelectedValue()); $prependContent = $this->renderPrependOptionTag(); $tagContent = $this->renderOptionTags($options); $childContent = $this->renderChildren(); - $this->viewHelperVariableContainer->remove(static::class, 'selectedValue'); - $this->viewHelperVariableContainer->remove(static::class, 'registerFieldNameForFormTokenGeneration'); + $this->viewHelperVariableContainer->remove(self::class, 'selectedValue'); + $this->viewHelperVariableContainer->remove(self::class, 'registerFieldNameForFormTokenGeneration'); if (isset($this->arguments['optionsAfterContent']) && $this->arguments['optionsAfterContent']) { $tagContent = $childContent . $tagContent; } else {