[dev] [commits] Horde branch master updated. b452cf3f12da5df65488f3d8e0b56b8ad39254ca

Jan Schneider jan at horde.org
Fri Dec 4 10:33:35 UTC 2009


Zitat von Michael M Slusarz <slusarz at horde.org>:

> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von Michael M Slusarz <slusarz at horde.org>:
>>
>>> commit b452cf3f12da5df65488f3d8e0b56b8ad39254ca
>>> Author: Michael M Slusarz <slusarz at curecanti.org>
>>> Date:   Thu Dec 3 13:56:30 2009 -0700
>>>
>>>   Fix function parameter
>>>
>>> framework/Url/lib/Horde/Url.php |    2 +-
>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> http://git.horde.org/diff.php/framework/Url/lib/Horde/Url.php?rt=horde-git&r1=8c5982998d22e7511767b7e2fb907044b07fc3ab&r2=b452cf3f12da5df65488f3d8e0b56b8ad39254ca
>>
>> What's wrong with that?
>
> I didn't realize we were going to do type hinting.  And I thought  
> type hinting was introduced after PHP 5.2 (turns out that it was  
> introduced in 5.0, although array type hinting apparently wasn't  
> introduced until PHP 5.1).

We should use it sparsely, to allow for loose coupling, but it makes  
sense at places where we really only accept a specific class/type IMO.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list