Project

General

Profile

Actions

Bug #105082

closed

When a validator in EXT:Form is not found a type error is thrown.

Added by Lina Wolf 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2024-09-22
Due date:
% Done:

100%

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

Description

I registered my own Validator for EXT:form in TYPO3 v 12.4:

prototypes:
  standard:
    validatorsDefinition:
      CustomDateValidation:
        implementationClassName: '\Lwo\Rebstock\Domain\Validation\DateValidation'

And did not know it was expected that the Class name ends on "Validator", it was therfore not found.

This gives a type error like

(1/1) TypeError
TYPO3\CMS\Form\Domain\Model\Renderable\AbstractRenderable::addValidator(): Argument #1 ($validator) must be of type TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface, null given, called in /var/www/html/vendor/typo3/cms-form/Classes/Domain/Model/Renderable/AbstractRenderable.php on line 201

Instead of a propper and excepted error that would be easier to debug.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #105395: Visibility change of AbstractRenderable->createValidator()ResolvedOliver Bartsch2024-10-22

Actions
Actions

Also available in: Atom PDF