Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 225 Bytes

PossiblyNullPropertyAssignment.md

File metadata and controls

15 lines (12 loc) · 225 Bytes

PossiblyNullPropertyAssignment

Emitted when trying to assign a property to a possibly null object

<?php

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