mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Make ReflectionType an abstract class
This is never instantiated directly, only child classes are used.
This commit is contained in:
parent
6ca2e1db8e
commit
4fc4249d24
1 changed files with 1 additions and 0 deletions
|
@ -6790,6 +6790,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
|
||||||
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionType", reflection_type_functions);
|
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionType", reflection_type_functions);
|
||||||
reflection_init_class_handlers(&_reflection_entry);
|
reflection_init_class_handlers(&_reflection_entry);
|
||||||
reflection_type_ptr = zend_register_internal_class(&_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);
|
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionNamedType", reflection_named_type_functions);
|
||||||
reflection_init_class_handlers(&_reflection_entry);
|
reflection_init_class_handlers(&_reflection_entry);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue