#91401Fluid AbstractViewHelper::getArguments incompatibilities
Description
In #90289 some compatibility code for Fluid 3.0 was added to TYPO3 8.7 which apparently break my project.
[14-May-2020 11:31:05 UTC] PHP Fatal error: Declaration of FluidTYPO3\Vhs\ViewHelpers\Menu\AbstractMenuViewHelper::getArguments() must be compatible with TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper::getArguments(): TYPO3Fluid\Fluid\Component\Argument\ArgumentCollection in …/public/typo3conf/ext/vhs/Classes/ViewHelpers/Menu/AbstractMenuViewHelper.php on line 21
The setup uses PHP 7.1 and vhs in version 4.2 which already has a getArguments method in the AbstractMenuViewHelper.
Additionally the code in the AbstractViewHelper::getArguments seems pretty weird:
public function getArguments(): ArgumentCollection
{
if (method_exists($this, 'registerRenderMethodArguments')) {
$this->registerRenderMethodArguments();
}
return parent::getArguments();
}
registerRenderMethodArguments exists in that class -> why do we need to check if it exists?
It calls parent::getArguments, but \TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper in version 2.6.6 of typo3fluid/fluid does not have that method, only Fluid 3 has it.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.