Emitted when case value is invalid (see below).
<?php
enum Status
{
case Open = "open";
}
Either remove the value or alter the enum to be backed.
<?php
enum Status: string
{
case Open = "open";
}
<?php
enum Status: string
{
case Open;
}
Either alter the enum to be pure, or add a value.
<?php
enum Status
{
case Open;
}
Case type should match the backing type of the enum.
<?php
enum Status: string
{
case Open = 1;
}
Change the types so that they match
<?php
enum Status: string
{
case Open = "open";
}
Case type should be either int
or string
.
<?php
enum Status: int {
case Open = [];
}
Change the case value so that it's one of the allowed types (and matches the backing type)
<?php
enum Status: int
{
case Open = 1;
}