Extending SplObjectStorage impossible due to type hints!?
| From: | Karsten Dambekalns | Date: | Fri, 03 Apr 2009 10:05:46 +0000 |
| Subject: | Extending SplObjectStorage impossible due to type hints!? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-43612@lists.php.net to get a copy of this message | ||
Hi.
I am trying to extend SplObjectStorage and override the attach() method. This gives me:
Strict Standards: Declaration of B::attach() should be compatible with that of SplObjectStorage::attach() in test.php on line 5
Seems am am hitting the object type hint wall again. Any ways around this, aside from disabling strict standard notices?
Regards,
Karsten