Skip to content
On this page

ClassInstantiation

Verifies that classes are instantiated with parentheses.

Scope

PSR12.Classes.ClassInstantiation

Description

When instantiating a new class, parenthesis MUST always be present even when there are no arguments passed to the constructor.

Usage

xml
<rule ref="PSR12.Classes.ClassInstantiation"></rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.