[TYPO3-core] RFC: #7350:PHP5ize class.t3lib_div.php

Oliver Hader oh at inpublica.de
Mon Feb 4 23:06:34 CET 2008


FYI: The attached changes were committed to SVN Trunk (rev. ) as 
followup to this RFC.

Problem:
Trying to create a new extension using the kickstarter showed type 
mismatch in t3lib_div.

Solution:
Cast the argument to (array).

olly


Martin Kutschker schrieb:
> This is a SVN patch request.
> 
> Branches: trunk only
> 
> BT reference: http://bugs.typo3.org/view.php?id=7350
> 
> Type: code clean up
> 
> Issue: PHP 5.1 allows to declare a method of a class static and it 
> allows to use type hinting for funciton parameters, especially arrays. 
> To move on in style (and to set an example) t3lib_div gets these features.
> 
> Notes: yes I know, stupid coders won't check the arguments they use in 
> calling t3lib_div functions and those will now get PHP errors - oh 
> horrible loss of compatibility. But hey, this is by design and they 
> should be thankful for it. Instead of a silent failure they can now 
> start debugging their code with a helpful PHP error.
> 
> Masi
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007350_post.patch
Type: text/x-patch
Size: 1455 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080204/d2c5f3ac/attachment-0001.bin 


More information about the TYPO3-team-core mailing list