Bug #105082
closedWhen a validator in EXT:Form is not found a type error is thrown.
100%
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.
Updated by Gerrit Code Review 2 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86272
Updated by Gerrit Code Review 2 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86272
Updated by Gerrit Code Review about 2 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86368
Updated by Gerrit Code Review about 2 months ago
Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/86368
Updated by Oliver Bartsch about 2 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset abe41e4898003ba70251c8bb0216558e1d2324c4.
Updated by Oliver Bartsch about 1 month ago
- Related to Bug #105395: Visibility change of AbstractRenderable->createValidator() added