Hi!
According to the manual and the PHP source the signature is this:
public function getValue(stdclass $object)
Manual is unfortunately not exact in this point - true signature for it
is public function getValue([object $object]) - i.e. $object is not
required and if it's supplied, it doesn't have to be stdclass - any
object will do. Thus, engine correctly complains that your signature -
required object of stdclass - is not compatible.
This is my test code:
---- snip ----
<?php
class PropertyReflection extends ReflectionProperty {
public function getValue(stdclass $object) {}
}
?>
Use public function getValue($object = null) {} instead.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED] http://www.zend.com/
(408)253-8829 MSN: [EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php