Skip to content

Commit 4fc4249

Browse files
committed
Make ReflectionType an abstract class
This is never instantiated directly, only child classes are used.
1 parent 6ca2e1d commit 4fc4249

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/reflection/php_reflection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6790,6 +6790,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
67906790
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionType", reflection_type_functions);
67916791
reflection_init_class_handlers(&_reflection_entry);
67926792
reflection_type_ptr = zend_register_internal_class(&_reflection_entry);
6793+
reflection_type_ptr->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS;
67936794

67946795
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionNamedType", reflection_named_type_functions);
67956796
reflection_init_class_handlers(&_reflection_entry);

0 commit comments

Comments
 (0)