Bug #57453
closed
TYPO3\CMS\Extbase\Validation\Validator\NumberValidator
Added by Nadine Schwingler over 10 years ago.
Updated about 6 years ago.
Description
The function-description shows that there SHOULD be a boolean return value but the Validator only adds an Error, no return value is given.
I was talking about the isValid-Funtion inside the validator
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36143
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36143
Just out of curiosity, wouldn't it make more sense to add return FALSE / TRUE were missing instead of adapting the PHPDoc? I'd pretty much expect isValid to return a boolean.
Ok I just saw this has changed somewhere between 4.5 and 6.2
It was defined as returning a Boolean in the Interface in 4.5, but is not anymore.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36189
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF