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"; } Further resources# CWE-476 Get Psalm news by email News about Psalm, a few emails a month. You can unsubscribe at any time. Email Subscribe I accept the privacy policy