1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 13:10:49 +01:00
psalm/docs/running_psalm/issues/ConstantDeclarationInTrait.md

16 lines
184 B
Markdown
Raw Normal View History

2023-01-17 15:25:45 +01:00
# ConstantDeclarationInTrait
Emitted when a trait declares a constant in PHP <8.2.0
```php
<?php
trait A {
const B = 0;
}
```
## Why this is bad
A fatal error will be thrown.