InvalidPropertyAssignmentValue# Error at levels 1–6 Default (2) Error Emitted when attempting to assign a value to a property that cannot contain that type. <?php class A { /** @var string|null */ public $foo; } $a = new A(); $a->foo = new stdClass(); 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