php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #77426
Patch doc-fix-77426 revision 2019-01-20 17:57 UTC by girgias@php.net

Patch doc-fix-77426 for Class/Object related Bug #77426

Patch version 2019-01-20 17:57 UTC

Return to Bug #77426 | Download this patch
Patch Revisions:

Developer: girgias@php.net

--- en/language/oop5/basic.xml
+++ en/language/oop5/basic.xml
@@ -142,6 +142,14 @@
     the class is in a namespace, its fully qualified name must be used when
     doing this.
    </para>
+
+   <note>
+    <para>
+     If there are no arguments to be passed to the class's constructor,
+     parentheses after the class name may be omitted.
+    </para>
+   </note>
+
    <example>
     <title>Creating an instance</title>
     <programlisting role="php">
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jul 17 04:01:25 2019 UTC