Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 216 Bytes

PossiblyNullPropertyFetch.md

File metadata and controls

15 lines (12 loc) · 216 Bytes

PossiblyNullPropertyFetch

Emitted when trying to fetch a property on a possibly null object

<?php

class A {
    /** @var ?string */
    public $foo;
}
function foo(?A $a) : void {
    echo $a->foo;
}