[TYPO3-dev] Extensions need update for 4.3!

Dmitry Dulepov dmitry at typo3.org
Thu Oct 9 17:53:54 CEST 2008


Hi!

Steffen Kamper wrote:
> 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?

What do you mean by "type casting" here?

The check is not necessary if default value is passed.

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/duplicate_content_with_realurl/




More information about the TYPO3-dev mailing list