Skip to content

Commit 7f462c9

Browse files
committed
Revert "Make ReflectionUnionType final"
This reverts commit ef6adb4. Per Ondrej's comment, this is already being used by BetterReflection adaptors, ugh.
1 parent ef6adb4 commit 7f462c9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ext/reflection/php_reflection.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6529,7 +6529,6 @@ 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;
65336532
reflection_union_type_ptr = zend_register_internal_class_ex(&_reflection_entry, reflection_type_ptr);
65346533

65356534
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-
final class ReflectionUnionType extends ReflectionType
571+
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: 4b759a151e33cdd91e414ac332e3a2760534a1d6 */
2+
* Stub hash: ec7607b8087ddd4297bf51cc4072465d2a0f27af */
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)