1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 18:48:03 +01:00
psalm/docs/running_psalm/issues/OverriddenInterfaceConstant.md

18 lines
256 B
Markdown
Raw Normal View History

# OverriddenInterfaceConstant
Emitted when a constant declared on an interface is overridden by a child (illegal in PHP < 8.1).
```php
<?php
interface Foo
{
public const BAR='baz';
}
interface Bar extends Foo
{
public const BAR='foobar';
}
```