note 73343 deleted from language.variables.scope by didou
| From: | didou@php.net | Date: | Sun, 18 Feb 2007 23:05:41 +0000 |
| Subject: | note 73343 deleted from language.variables.scope by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123562@lists.php.net to get a copy of this message | ||
Note Submitter: decemtione
Reason: useless
----
:'(
<?php
interface iBla{
public function nah(int $i);
}
class Bla implements iBla{
public function nah(int $i=1){
return $i;
}
}
$a = new Bla();
echo $a->nah();
?> Fatal error: Default value for parameters with a class type hint can only be NULL in /test.php
on line 7
<?php
interface iBla{
public function nah(int $i=1);
}
class Bla implements iBla{
public function nah(int $i=1){
return $i;
}
}
$a = new Bla();
echo $a->nah();
?> Fatal error: Default value for parameters with a class type hint can only be NULL in /test.php
on line 4