InvalidConstantAssignmentValue# Error at levels 1–6 Default (2) Error Emitted when attempting to assign a value to a class constant that cannot contain that type. <?php class Foo { /** @var int */ public const BAR = "bar"; } 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