1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 19:07:00 +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";
}
```