Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 287 Bytes

DirectConstructorCall.md

File metadata and controls

12 lines (10 loc) · 287 Bytes

DirectConstructorCall

Emitted when __construct() is called directly as a method. Constructors are supposed to be called implicitely, as a result of new ClassName statement.

<?php
class A {
    public function __construct() {}
}
$a = new A;
$a->__construct(); // wrong