Project

General

Profile

Actions

Bug #99796

closed

ClickEnlargeViewHelper: wrong data-type for argument `configuration`

Added by Julian Hofmann almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-02-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

ClickEnlargeViewHelper initializes its argument `configuration` as 'mixed', containing "String, \TYPO3\CMS\Core\Resource\File or \TYPO3\CMS\Core\Resource\FileReference with link configuration".

In fact, this argument is used only once: when passing it to `TypoScriptService::convertPlainArrayToTypoScriptArray()`. This method expects its argument to be an array (`@param array $typoScriptArray The TypoScript array (e.g. array('foo' => 'TEXT', 'foo.' => array('bar' => 'baz')))`) and has 'array' as its type declaration.

Seems, there are two issues:
  • The documentation of the argument does not meet its real use
  • The data-type does not meet the usage and will throw an exception
Actions

Also available in: Atom PDF