Closed thekid closed 2 years ago
Based on https://wiki.php.net/rfc/sealed_classes. For PHP versions < 8.2, the following (also suggested in https://externals.io/message/117350#117356) is supported:
use lang\Sealed; #[Sealed([Exception::class, Throwable::class])] abstract class Throwable { // ... }
lang.XPClass::isSealedDefinition(): bool
lang.XPClass::sealedSubclasses(): lang.XPClass[]
MODIFIER_SEALED
lang.reflect.Modifiers::isSealed()
ReflectionClass::IS_SEALED
ReflectionClass::isSealed()
ReflectionClass::getPermittedClasses()
See also #304
RFC has been declined.
Based on https://wiki.php.net/rfc/sealed_classes. For PHP versions < 8.2, the following (also suggested in https://externals.io/message/117350#117356) is supported:
lang.XPClass::isSealedDefinition(): bool
lang.XPClass::sealedSubclasses(): lang.XPClass[]
MODIFIER_SEALED
lang.reflect.Modifiers::isSealed()
ReflectionClass::IS_SEALED
modifierReflectionClass::isSealed()
ReflectionClass::getPermittedClasses()
See also #304