diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index 06b58358101b3..47ddd4b34cdca 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -180,6 +180,7 @@ 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 7683128694171..7275e70b78e63 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: 11fcaa654fc0442e8338f6849b91aa2970b211b9 */ + * Stub hash: 3cd439907729e82e32b2d9137888350cfeffaa78 */ 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,6 +1328,12 @@ 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);