From: Nikita Popov Date: Mon, 2 Sep 2019 13:38:17 +0000 (+0200) Subject: Make ReflectionType an abstract class X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fc4249d24a1a96f94c0721c839f3bb1998112e5;p=php Make ReflectionType an abstract class This is never instantiated directly, only child classes are used. --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index d31a99bd3f..5cc023831e 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -6790,6 +6790,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */ INIT_CLASS_ENTRY(_reflection_entry, "ReflectionType", reflection_type_functions); reflection_init_class_handlers(&_reflection_entry); reflection_type_ptr = zend_register_internal_class(&_reflection_entry); + reflection_type_ptr->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; INIT_CLASS_ENTRY(_reflection_entry, "ReflectionNamedType", reflection_named_type_functions); reflection_init_class_handlers(&_reflection_entry);