Project

General

Profile

Actions

Bug #105146

closed

TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper::renderHiddenIdentityField(): Argument #1 ($object) must be of type ?object, array given

Added by rene elsaesser about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2024-09-26
Due date:
% Done:

100%

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

Description

Hello,

Typo3 12.4.20 Fluid

In FormViewHelper the argument 'object' can be type 'mixed' but if you use an array you get

(1/1) TypeError

TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper::renderHiddenIdentityField(): Argument #1 ($object) must be of type ?object, array given, called in ***/vendor/typo3/cms-fluid/Classes/ViewHelpers/FormViewHelper.php on line 180

AbstractFormViewHelper the function requires object renderHiddenIdentityField(?object $object, ?string $name)

Ty


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #96473: Allow ServerRequestInterface in ext:fluidClosed2022-01-06

Actions
Is duplicate of TYPO3 Core - Bug #103162: The f:form ViewHelper can not handle arrays as object attribute anymoreClosed2024-02-20

Actions
Actions

Also available in: Atom PDF