]> granicus.if.org Git - php/commitdiff
Make ReflectionUnionType final
authorMáté Kocsis <kocsismate@woohoolabs.com>
Sun, 25 Oct 2020 18:20:03 +0000 (19:20 +0100)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Sun, 25 Oct 2020 19:14:07 +0000 (20:14 +0100)
Closes GH-6384

ext/reflection/php_reflection.c
ext/reflection/php_reflection.stub.php
ext/reflection/php_reflection_arginfo.h

index 7adcfc506a9966034b12b0264869dc704fd83dd0..d1957521c04cc16c80dd67ccca7c638088044d46 100644 (file)
@@ -6529,6 +6529,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
 
        INIT_CLASS_ENTRY(_reflection_entry, "ReflectionUnionType", class_ReflectionUnionType_methods);
        reflection_init_class_handlers(&_reflection_entry);
+       _reflection_entry.ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NO_DYNAMIC_PROPERTIES;
        reflection_union_type_ptr = zend_register_internal_class_ex(&_reflection_entry, reflection_type_ptr);
 
        INIT_CLASS_ENTRY(_reflection_entry, "ReflectionMethod", class_ReflectionMethod_methods);
index 7e2f061142bc34af3dba1b9dc0d03ab49cee732d..8ad269031fdd16d2180f012331b7f24316970ee6 100644 (file)
@@ -568,7 +568,7 @@ class ReflectionNamedType extends ReflectionType
     public function isBuiltin() {}
 }
 
-class ReflectionUnionType extends ReflectionType
+final class ReflectionUnionType extends ReflectionType
 {
     public function getTypes(): array {}
 }
index 591a160ed3150e83accad9546aeab26153c07737..5206c904805ffb06ca70f594deabdbdb4df8a6a8 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: ec7607b8087ddd4297bf51cc4072465d2a0f27af */
+ * Stub hash: 4b759a151e33cdd91e414ac332e3a2760534a1d6 */
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 0, 1)
        ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0)