Project

General

Profile

Actions

Story #94055

closed

Deprecation: #83094 IgnoreValidation results in exception

Added by Franz Holzinger almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
-- undefined --
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2021-05-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Sprint Focus:

Description

The deprecation #83094 has not been taken care of in the function initializeActionMethodValidators of class ActionController .

This leads to a PHP exception.

PHP Warning: array_flip(): Can only flip STRING and INTEGER values in /var/www/html/typo3_src-9.5.24/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php line 254

See the blog example extension:

https://github.com/FriendsOfTYPO3/blog_example/issues/10

This fix solves the issue for this case:

$ignoreValidationAnnotations = array_unique(array_flip(
$classSchema->getMethod($this->actionMethodName)['tags']['TYPO3\CMS\Extbase\Annotation\IgnoreValidation'] ?? []
));

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #83094: Replace @ignorevalidation with @Extbase\IgnoreValidationClosed2017-11-25

Actions
Actions

Also available in: Atom PDF