Hi. Stanislav Malyshev wrote:
According to the manual and the PHP source the signature is this: public function getValue(stdclass $object)
...
Use public function getValue($object = null) {} instead.
Thanks, that works! I saw the [] in the C source, but failed to draw the right conclusion...
Regards, Karsten PS: Having a way to type hint on any object would be cool! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php