mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
552 B
552 B
AmbiguousConstantInheritance
Emitted when a constant is inherited from multiple sources.
<?php
interface Foo
{
/** @var non-empty-string */
public const CONSTANT='foo';
}
interface Bar
{
/**
* @var non-empty-string
*/
public const CONSTANT='bar';
}
interface Baz extends Foo, Bar {}
<?php
interface Foo
{
/** @var non-empty-string */
public const CONSTANT='foo';
}
class Bar
{
/** @var non-empty-string */
public const CONSTANT='bar';
}
class Baz extends Bar implements Foo {}