1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +01:00
psalm/docs/running_psalm/issues/DuplicateEnumCaseValue.md

28 lines
338 B
Markdown
Raw Normal View History

# DuplicateEnumCaseValue
Emitted when a backed enum has duplicate case values.
```php
<?php
enum Status: string
{
case Open = "open";
case Closed = "open";
}
```
## How to fix
Change case values so that there are no duplicates.
```php
<?php
enum Status: string
{
case Open = "open";
case Closed = "closed";
}
```