Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 274 Bytes

UninitializedProperty.md

File metadata and controls

17 lines (13 loc) · 274 Bytes

UninitializedProperty

Emitted when a property is used in a constructor before it is initialized

<?php

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

    public function __construct() {
        echo strlen($this->foo);
        $this->foo = "foo";
    }
}