Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 250 Bytes

PropertyNotSetInConstructor.md

File metadata and controls

14 lines (10 loc) · 250 Bytes

PropertyNotSetInConstructor

Emitted when a non-null property without a default value is declared but not set in the class’s constructor

<?php

class A {
    /** @var string */
    public $foo;

    public function __construct() {}
}