Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42196 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76519 invoked from network); 9 Dec 2008 09:47:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2008 09:47:47 -0000 X-Host-Fingerprint: 84.140.188.136 p548CBC88.dip.t-dialin.net Received: from [84.140.188.136] ([84.140.188.136:21126] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/57-32064-0CE3E394 for ; Tue, 09 Dec 2008 04:47:45 -0500 Message-ID: <20.57.32064.0CE3E394@pb1.pair.com> To: internals@lists.php.net Date: Tue, 09 Dec 2008 10:47:41 +0100 User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 References: <493D425C.6010104@zend.com> In-Reply-To: <493D425C.6010104@zend.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 84.140.188.136 Subject: Re: [PHP-DEV] Problem with (namespaced) code extending ReflectionProperty- possible bug? From: karsten@typo3.org (Karsten Dambekalns) 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!