Re: Extending SplObjectStorage impossible due to type hints!?

From: Date: Fri, 03 Apr 2009 11:02:39 +0000
Subject: Re: Extending SplObjectStorage impossible due to type hints!?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-43615@lists.php.net to get a copy of this message
On Fri, Apr 3, 2009 at 2:42 PM, Karsten Dambekalns <karsten@typo3.org> wrote: > 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! try this (with CLI php): php --rc SplObjectStorage > PS: Some updated docs for SPL would be really cool... ;) +1 ;) -- Alexey Zakhlestin http://www.milkfarmsoft.com/

« previous php.internals (#43615) next »