Doc #70412 [Asn->Csd]: capitalization typo in class name
| From: | cmb@php.net | Date: | Wed, 02 Sep 2015 21:19:23 +0000 |
| Subject: | Doc #70412 [Asn->Csd]: capitalization typo in class name | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12709@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70412&edit=1
ID: 70412
Updated by: cmb@php.net
Reported by: alisonjo2786 at gmail dot com
Summary: capitalization typo in class name
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: cmb
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:
------------------------------------------------------------------------
[2015-09-02 21:19:06] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=337714
Log: capitalized class name to match definition (fixes #70412)
------------------------------------------------------------------------
[2015-09-02 21:12:58] cmb@php.net
Either
new foo as well as new Foo is valid, because class
names are case-insensitive. However, I agree that new Foo is
better suited for an example in the documentation at least.
------------------------------------------------------------------------
[2015-09-02 19:20:38] alisonjo2786 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/language.oop5.visibility
---
(I could be wrong! but...)
In "Example #2 Method Declaration," almost at the end:
$myFoo = new foo();
The class definition is class Foo extends Bar, so I think this line should say Foo with a capital F:
$myFoo = new Foo();
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70412&edit=1