Doc #75374 [Opn->Csd]: ReflectionParameter::getDeclaringClass() can return n ull

From: Date: Mon, 29 Jan 2018 22:53:31 +0000
Subject: Doc #75374 [Opn->Csd]: ReflectionParameter::getDeclaringClass() can return n ull
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15380@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75374&edit=1 ID: 75374 Updated by: vrana@php.net Reported by: benjamin dot morel at gmail dot com Summary: ReflectionParameter::getDeclaringClass() can return n ull -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant -Assigned To: +Assigned To: vrana Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2018-01-29 22:53:27] vrana@php.net Automatic comment from SVN on behalf of vrana Revision: http://svn.php.net/viewvc/?view=revision&revision=344084 Log: Document return value for functions (bug #75374) ------------------------------------------------------------------------ [2017-10-13 17:43:10] benjamin dot morel at gmail dot com Description: ------------ when called on a function (not method) parameter, ReflectionParameter::getDeclaringClass() returns null. The documentation should reflect this, as it currently implies that a ReflectionClass is always returned. Expected result: ---------------- public ReflectionClass|null ReflectionParameter::getDeclaringClass ( void ) Actual result: -------------- public ReflectionClass ReflectionParameter::getDeclaringClass ( void ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75374&edit=1

« previous php.doc.bugs (#15380) next »