#105082When a validator in EXT:Form is not found a type error is thrown.
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.
Reviews 5
- 12.4 86628[BUGFIX] Revert visibility change of createValidator()
- 13.4 86627[BUGFIX] Revert visibility change of createValidator()
- main 86691[BUGFIX] Revert visibility change of createValidator()
- main 86272[BUGFIX] Prevent TypeError on adding extbase validators
- 12.4 86368[BUGFIX] Prevent TypeError on adding extbase validators
Related issues 1
History 37
-
Gerrit Code Review pushed patch set 1 for main to change 86272 status
NewUnder Review 09/23/24, 21:54 -
Gerrit Code Review pushed patch set 2 for main to change 86272 09/24/24, 12:23
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 86368 09/28/24, 09:36
-
Gerrit Code Review pushed patch set 2 for 12.4 to change 86368 09/28/24, 10:01
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % 09/28/24, 10:15 -
Benni Mack changed status
ResolvedClosed 10/15/24, 09:05 -
Oliver Bartsch changed Related to #105395 10/22/24, 14:06
Applied in changeset commit:abe41e4898003ba70251c8bb0216558e1d2324c4.