PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/ClassInstantiationStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/ClassInstantiationStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/ClassInstantiationStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 504 bytes
 

Contents

Class file image Download
<documentation title="Class Instantiation"> <standard> <![CDATA[ When instantiating a new class, parenthesis MUST always be present even when there are no arguments passed to the constructor. ]]> </standard> <code_comparison> <code title="Valid: Parenthesis used."> <![CDATA[ new Foo(); ]]> </code> <code title="Invalid: Parenthesis not used."> <![CDATA[ new Foo; ]]> </code> </code_comparison> </documentation>