php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53490 ReflectionClass::__construct() documentation incorrect
Submitted: 2010-12-06 23:51 UTC Modified: 2010-12-07 04:05 UTC
From: php at elyobo dot net Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at elyobo dot net
New email:
PHP Version: OS:

 

 [2010-12-06 23:51 UTC] php at elyobo dot net
Description:
------------
The documentation for the ReflectionClass construction incorrectly indicates that 
the argument should be of type string; this is incorrect, as the system works 
correct with either a string or Object.

The documentation should indicate that the type is "mixed" and should provide an 
explanation that either the name of the target class or an instance of the target 
class can be used.

The documentation in question is available at 
http://www.php.net/manual/en/reflectionclass.construct.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-07 01:14 UTC] cataphract@php.net
-Type: Bug +Type: Documentation Problem
 [2010-12-07 03:24 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2010-12-07 04:05 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=306039
Log: Fix doc bug #53490 (ReflectionClass::__construct() documentation incorrect).
 [2010-12-07 04:05 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2010-12-07 04:05 UTC] aharvey@php.net
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.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC