[TYPO3-core] RFC #0016467 Missing array check in tt_content

Oliver Klee typo3-german-01 at oliverklee.de
Fri Nov 19 10:50:40 CET 2010


Hi,

Am 19.11.2010 09:39, schrieb Jigal van Hemert:
> Since the method is defined as
> 
> public function stdWrap($content = '', $conf = array()) {
> 
> wouldn't it be better to force $conf as an array:
> 
> public function stdWrap($content = '', array $conf = array()) {

As the parameter is documented to always be an array ...:

> 	 * @param	array		TypoScript "stdWrap properties".
> 	 * @return	string		The processed input value
> 	 */
> 	public function stdWrap($content = '', $conf = array()) {

..., we indeed should add type hiting and fix all (broken) callers.


Oli
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member


More information about the TYPO3-team-core mailing list