Re: Extending SplObjectStorage impossible due to type hints!?
| From: | Karsten Dambekalns | Date: | Fri, 03 Apr 2009 10:42:50 +0000 |
| Subject: | Re: Extending SplObjectStorage impossible due to type hints!? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43614@lists.php.net to get a copy of this message | ||
Hi Alexey.
On 03.04.2009 12:33 Uhr, Alexey Zakhlestin wrote:
well, and what is the reason why you can't make your "attach()" compatible with SplObjectStorage's? the following signature works for me (both in 5.2 and 5.3): public function attach($obj, $inf = null)Doh, well. Even better, so it's not some "object" type hint, but simply me not knowing the full attach() signature. Yay! Thanks a bunch! Karsten PS: Some updated docs for SPL would be really cool... ;)