Doc #70412 [Opn]: capitalization typo in class name
| From: | cmb@php.net | Date: | Wed, 02 Sep 2015 21:12:59 +0000 |
| Subject: | Doc #70412 [Opn]: capitalization typo in class name | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12708@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: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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