RE: [PHP-DEV] inheritance check too strict?
| From: | Jonathan Bond-Caron | Date: | Fri, 20 Aug 2010 13:38:44 +0000 |
| Subject: | RE: [PHP-DEV] inheritance check too strict? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49480@lists.php.net to get a copy of this message | ||
On Fri Aug 20 09:10 AM, Jonathan Bond-Caron wrote:
>
> Maybe Stas can comment but I can't reproduce the E_STRICT warning Is
> this php HEAD?
>
> class ObjParent {
> function set($param2 = '') {}
> }
>
> class ObjChild extends ObjParent {
> function set(){ echo "."; }
> }
>
My mistake,
Strict Standards: Declaration of ObjChild::set() should be compatible with that of ObjParent::set()
I'll let the strict vs loose php battle this one out :)