Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 368 Bytes

InvalidExtendClass.md

File metadata and controls

25 lines (17 loc) · 368 Bytes

InvalidExtendClass

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

final class A {}

class B extends A {}

/**
 * @final
 */
class DoctrineA {}

class DoctrineB extends DoctrineA {}

/**
 * @psalm-inheritors A|B
 */
class C {}

class D extends C {}