Re: Problem with (namespaced) code extending ReflectionProperty- possible bug?

From: Date: Tue, 09 Dec 2008 09:47:41 +0000
Subject: Re: Problem with (namespaced) code extending ReflectionProperty- possible bug?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-42196@lists.php.net to get a copy of this message
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!

« previous php.internals (#42196) next »