mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
cc2334f40d
Add InvalidClassConstType issue as alternative to LessSpecificClassConstType when type isn't contravariant. Handle final class consts (#6395). Use double quotes for types in class const issues.
285 B
285 B
OverriddenFinalConstant
Emitted when a constant declared as final is overridden in a child class or interface.
<?php
class Foo
{
/** @var string */
final public const BAR='baz';
}
class Bar extends Foo
{
/** @var string */
public const BAR='foobar';
}