1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +01:00
psalm/docs/running_psalm/issues/OverriddenFinalConstant.md
AndrolGenhald cc2334f40d More class const improvements.
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.
2022-02-13 17:19:25 -06:00

20 lines
285 B
Markdown

# OverriddenFinalConstant
Emitted when a constant declared as final is overridden in a child class or interface.
```php
<?php
class Foo
{
/** @var string */
final public const BAR='baz';
}
class Bar extends Foo
{
/** @var string */
public const BAR='foobar';
}
```