mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +01:00
ce39bab966
suggestion by @weirdan
19 lines
241 B
Markdown
19 lines
241 B
Markdown
# InvalidExtendClass
|
|
|
|
Emitted when attempting to extends 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 {}
|
|
```
|