Posted by Joe Scylla on 08/28/07 14:31
Fabio wrote:
> ...snipped...
>
>> Take that out of your function
>> declaration and it should be fine.
>
> so I should remove the type for the parameter?
> This don't seems a good solution :(
>
> I tryied this kind of error_reporting because else if I declare for my fault
> 2 time the foo() function, the script is interrupted (cannot be interpreted)
> and I got the error message that the function is duplicated.
>
> I was not able to leave the useful "duplicated error message" but removing
> the useless *catchable* FATAL (???) error :(
Please read the manual about Type Hinting:
http://www.php.net/manual/en/language.oop5.typehinting.php
Joe
Navigation:
[Reply to this message]
|