mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 18:17:55 +01:00
b4f024b1fe
* Duplicate cases * Duplicate case values * Invalid case values: value on a pure enum case, missing value on a backed enum case, backing type / case type mismatch * Literal expression evaluation for case values Fixes vimeo/psalm#6426 Fixes vimeo/psalm#6427
253 B
253 B
DuplicateEnumCase
Emitted when enum has duplicate cases.
<?php
enum Status
{
case Open;
case Open;
}
How to fix
Remove or rename the offending duplicates.
<?php
enum Status
{
case Open;
case Closed;
}