Doc #63654 [Opn->Csd]: ReflectionClass::getConstructor() can return null, not documented
| From: | bjori@php.net | Date: | Sun, 02 Dec 2012 05:25:33 +0000 |
| Subject: | Doc #63654 [Opn->Csd]: ReflectionClass::getConstructor() can return null, not documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9231@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63654&edit=1
ID: 63654
Updated by: bjori@php.net
Reported by: benjamin dot morel at strictcoding dot co dot uk
Summary: ReflectionClass::getConstructor() can return null,
not documented
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: bjori
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2012-12-02 05:24:39] bjori@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=328599
Log: Fixed #63654 ReflectionClass::getConstructor() can return null, not documented
------------------------------------------------------------------------
[2012-11-30 09:46:14] benjamin dot morel at strictcoding dot co dot uk
Description:
------------
The manual for ReflectionClass::getConstructor():
http://www.php.net/manual/en/reflectionclass.getconstructor.php
Documents ReflectionMethod as the only possible return value.
However, as demonstrated in the test script below, this method can return NULL
when the class has no constructor.
The documentation should be changed to:
Return Values
A ReflectionMethod object reflecting the class' constructor, or NULL if the class
has no constructor.
Test script:
---------------
class C {}
$r = new ReflectionClass('C');
var_export($r->getConstructor()); // NULL
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63654&edit=1