[TYPO3-core] RFC: #15440: isFirstPartOfStr doesn't work with non-strings
Oliver Klee
typo3-german-02 at oliverklee.de
Thu Aug 12 16:27:38 CEST 2010
Hi,
Am 12.08.2010 15:20, schrieb Jigal van Hemert:
> Although I would have used type hinting if that would have been
> possible, which would give fatal errors if non-strings were passed. But
> that's a matter of policy (convert parameters to correct type or force
> correct type)...
AFAIK, the policy is that the caller is responsible for providing the
correct type. That's what the @param documentation is for.
I propose we do the following (in that order):
1. add the cast
2. fix the callers
3. drop the cast
Oli
--
Certified TYPO3 Integrator | TYPO3 Security Team Member
More information about the TYPO3-team-core
mailing list