OverriddenInterfaceConstant

January 25, 2022 ยท View on GitHub

Emitted when a constant declared on an interface is overridden by a child (illegal in PHP < 8.1).

<?php

interface Foo
{
    public const BAR='baz';
}

interface Bar extends Foo
{
    public const BAR='foobar';
}