File "ClassInstantiationStandard.xml"
Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/ClassInstantiationStandard.xml
File size: 504 bytes
MIME-type: text/plain
Charset: utf-8
<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>