[TYPO3-dev] Extensions need update for 4.3!

Steffen Kamper info at sk-typo3.de
Thu Oct 9 16:50:07 CEST 2008


Hi,

Dmitry Dulepov schrieb:
> We need to use some common sense here and there in those kind of stuff.
> 
> I do not think it is named common sense :( It is stimulating bad coding 
> style.
> 
> I think we should use Steffens suggestion instead ("array $param = 
> array()").
> 
> We never declared we allow NULL.
> 

other question, what is the sense of type casting in this case?

function bla(array $var = array()) {
   if(!is_array($var)) $var = array();
...

with this check the type casting doesn't make sense, or?

vg Steffen




More information about the TYPO3-dev mailing list