Skip to content

Commit ef6adb4

Browse files
committed
Make ReflectionUnionType final
Closes GH-6384
1 parent fab76e3 commit ef6adb4

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ext/reflection/php_reflection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6529,6 +6529,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
65296529

65306530
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionUnionType", class_ReflectionUnionType_methods);
65316531
reflection_init_class_handlers(&_reflection_entry);
6532+
_reflection_entry.ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
65326533
reflection_union_type_ptr = zend_register_internal_class_ex(&_reflection_entry, reflection_type_ptr);
65336534

65346535
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionMethod", class_ReflectionMethod_methods);

ext/reflection/php_reflection.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public function getName() {}
568568
public function isBuiltin() {}
569569
}
570570

571-
class ReflectionUnionType extends ReflectionType
571+
final class ReflectionUnionType extends ReflectionType
572572
{
573573
public function getTypes(): array {}
574574
}

ext/reflection/php_reflection_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: ec7607b8087ddd4297bf51cc4072465d2a0f27af */
2+
* Stub hash: 4b759a151e33cdd91e414ac332e3a2760534a1d6 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)

0 commit comments

Comments
 (0)