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">
|