Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 210 Bytes

InvalidConstantAssignmentValue.md

File metadata and controls

12 lines (9 loc) · 210 Bytes

InvalidConstantAssignmentValue

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";
}