1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-05 13:10:49 +01:00
psalm/docs/running_psalm/issues/InvalidExtendClass.md

25 lines
368 B
Markdown
Raw Normal View History

# InvalidExtendClass
2023-04-20 18:25:11 +02:00
Emitted when attempting to extend a final class, a class annotated with `@final` or a class using @psalm-inheritors and not in the inheritor list
```php
<?php
final class A {}
class B extends A {}
/**
* @final
*/
class DoctrineA {}
class DoctrineB extends DoctrineA {}
2023-04-20 18:25:11 +02:00
/**
* @psalm-inheritors A|B
*/
class C {}
class D extends C {}
```