diff --git a/NEWS b/NEWS index 0b66ccd0a91..ece950165ad 100644 --- a/NEWS +++ b/NEWS @@ -53,6 +53,9 @@ PHP NEWS - MBstring: . Updated Unicode data tables to Unicode 17.0. (Yuya Hamada) +- Reflection: + . ReflectionConstant is no longer final. (sasezaki) + - Standard: . Passing strings which are not one byte long to ord() is now deprecated. (Girgias) diff --git a/UPGRADING b/UPGRADING index fc6000686c4..92288ec9845 100644 --- a/UPGRADING +++ b/UPGRADING @@ -862,6 +862,9 @@ PHP 8.5 UPGRADE NOTES readline_callback_handler_install() have been changed to true, rather than bool. +- Reflection: + . ReflectionConstant is no longer final. + ======================================== 10. New Global Constants ======================================== diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index 7af884953be..be372ac7299 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -904,7 +904,7 @@ final class ReflectionFiber * @strict-properties * @not-serializable */ -final class ReflectionConstant implements Reflector +class ReflectionConstant implements Reflector { public string $name; diff --git a/ext/reflection/php_reflection_arginfo.h b/ext/reflection/php_reflection_arginfo.h index 907ada13efa..6465c659c73 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: 0f6ecac0c6c4fb4af140a1be95f6a50c7532dae9 */ + * Stub hash: 576229f7a0c4afd2f8902db6ce87daa51256965e */ 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) @@ -1894,7 +1894,7 @@ static zend_class_entry *register_class_ReflectionConstant(zend_class_entry *cla zend_class_entry ce, *class_entry; INIT_CLASS_ENTRY(ce, "ReflectionConstant", class_ReflectionConstant_methods); - class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE); + class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_NO_DYNAMIC_PROPERTIES|ZEND_ACC_NOT_SERIALIZABLE); zend_class_implements(class_entry, 1, class_entry_Reflector); zval property_name_default_value;