Posted by seaside on 01/13/08 04:01
On 13 Jan., 04:56, "Peter Pei" <yan...@telus.com> wrote:
> Try the following to see it
> <?php
> class A {
> }
> function foo(A $a = 1) {
> ;
> }
> foo();
> ?>
I get this, which isn't missleading:
>>>
Fatal error: Default value for parameters with a class type hint can
only be NULL in /Applications/MAMP/htdocs/compile/includes/
CParser.inc.php on line 12
<<<
Navigation:
[Reply to this message]
|