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

19 lines
240 B
Markdown
Raw Normal View History

# InvalidExtendClass
2022-08-20 23:29:03 +02:00
Emitted when attempting to extend a final class or a class annotated with `@final`.
```php
<?php
final class A {}
class B extends A {}
/**
* @final
*/
class DoctrineA {}
class DoctrineB extends DoctrineA {}
```