[TYPO3-core] RFC #0016467 Missing array check in tt_content
Jigal van Hemert
jigal at xs4all.nl
Fri Nov 19 09:39:46 CET 2010
Hi,
On 18-11-2010 15:27, Bjoern Pedersen wrote:
> Problem: a count check is not sufficent to check for an array.
> Solution:
> add is_array check
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()) {
Or will too much code collapse which calls stdWrap with other types of
variables? The advantage is that we don't have to perform "expensive"
checks for this kind of situation.
Opinions of core devs and RMs on this?
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-team-core
mailing list