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