diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-10-25 19:20:03 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-10-25 20:14:07 +0100 |
commit | ef6adb4e27853eb19bf50bad6486311920d6af7b (patch) | |
tree | 81c43bbb23f00f94a0f42a3c0f32bf57a758cc24 | |
parent | fab76e3a11368f7af182973754b0f348e0843301 (diff) | |
download | php-git-ef6adb4e27853eb19bf50bad6486311920d6af7b.tar.gz |
Make ReflectionUnionType final
Closes GH-6384
-rw-r--r-- | ext/reflection/php_reflection.c | 1 | ||||
-rw-r--r-- | ext/reflection/php_reflection.stub.php | 2 | ||||
-rw-r--r-- | ext/reflection/php_reflection_arginfo.h | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 7adcfc506a..d1957521c0 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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); diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index 7e2f061142..8ad269031f 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -568,7 +568,7 @@ class ReflectionNamedType extends ReflectionType public function isBuiltin() {} } -class ReflectionUnionType extends ReflectionType +final class ReflectionUnionType extends ReflectionType { public function getTypes(): array {} } diff --git a/ext/reflection/php_reflection_arginfo.h b/ext/reflection/php_reflection_arginfo.h index 591a160ed3..5206c90480 100644 --- a/ext/reflection/php_reflection_arginfo.h +++ b/ext/reflection/php_reflection_arginfo.h @@ -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) |