mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +01:00
13 lines
179 B
Markdown
13 lines
179 B
Markdown
|
# NoEnumProperties
|
||
|
|
||
|
Emitted when there a property defined on an enum, as PHP
|
||
|
does not allow user-defined properties on enums.
|
||
|
|
||
|
```php
|
||
|
<?php
|
||
|
|
||
|
enum Status {
|
||
|
public $prop;
|
||
|
}
|
||
|
```
|