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
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 5Seems 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/
Hi Alexey.
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... ;)
Hi Alexey.
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/