On Fri, Apr 3, 2009 at 2:05 PM, Karsten Dambekalns <kars...@typo3.org> wrote: > 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?
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) -- Alexey Zakhlestin http://www.milkfarmsoft.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php