From 47789969ec61cb32913d9b35af14ebfeb3e8e7fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sun, 4 Feb 2024 07:36:19 +0100 Subject: [PATCH] Revert "Declare the missing ReflectionMethod::$name property" This reverts commit b0e83aabec6cdc30950a69068e82ec86fd68e564. The property is inherited from ReflectionFunctionAbstract. --- ext/reflection/php_reflection.stub.php | 1 - ext/reflection/php_reflection_arginfo.h | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index 47ddd4b34cd..06b58358101 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -180,7 +180,6 @@ class ReflectionMethod extends ReflectionFunctionAbstract /** @cvalue ZEND_ACC_FINAL */ public const int IS_FINAL = UNKNOWN; - public string $name; public string $class; public function __construct(object|string $objectOrMethod, ?string $method = null) {} diff --git a/ext/reflection/php_reflection_arginfo.h b/ext/reflection/php_reflection_arginfo.h index 7275e70b78e..76831286941 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: 3cd439907729e82e32b2d9137888350cfeffaa78 */ + * Stub hash: 11fcaa654fc0442e8338f6849b91aa2970b211b9 */ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 1, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0) @@ -1328,12 +1328,6 @@ static zend_class_entry *register_class_ReflectionMethod(zend_class_entry *class zend_declare_typed_class_constant(class_entry, const_IS_FINAL_name, &const_IS_FINAL_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); zend_string_release(const_IS_FINAL_name); - zval property_name_default_value; - ZVAL_UNDEF(&property_name_default_value); - zend_string *property_name_name = zend_string_init("name", sizeof("name") - 1, 1); - zend_declare_typed_property(class_entry, property_name_name, &property_name_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_STRING)); - zend_string_release(property_name_name); - zval property_class_default_value; ZVAL_UNDEF(&property_class_default_value); zend_string *property_class_name = zend_string_init("class", sizeof("class") - 1, 1);