Req #75376 [Opn->Csd]: ReflectionClass::getParentClass() can return null
| From: | vrana@php.net | Date: | Sun, 28 Jan 2018 13:12:33 +0000 |
| Subject: | Req #75376 [Opn->Csd]: ReflectionClass::getParentClass() can return null | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15368@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75376&edit=1
ID: 75376
Updated by: vrana@php.net
Reported by: benjamin dot morel at gmail dot com
Summary: ReflectionClass::getParentClass() can return null
-Status: Open
+Status: Closed
Type: Feature/Change Request
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-28 13:11:31] vrana@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=344004
Log: Document null return value (bug #75376)
------------------------------------------------------------------------
[2017-10-13 20:37:10] benjamin dot morel at gmail dot com
Description:
------------
When a class has no parent, ReflectionClass::getParentClass() returns NULL. It would be nice to
document this:
http://php.net/manual/en/reflectionclass.getparentclass.php
Expected result:
----------------
public ReflectionClass|null ReflectionClass::getParentClass ( void )
Actual result:
--------------
public ReflectionClass ReflectionClass::getParentClass ( void )
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75376&edit=1