mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.4'
* PHP-8.4: Reflection: indicate final and abstract properties in string output
This commit is contained in:
@@ -942,6 +942,12 @@ static void _property_string(smart_str *str, zend_property_info *prop, const cha
|
||||
if (!prop) {
|
||||
smart_str_append_printf(str, "<dynamic> public $%s", prop_name);
|
||||
} else {
|
||||
if (prop->flags & ZEND_ACC_ABSTRACT) {
|
||||
smart_str_appends(str, "abstract ");
|
||||
}
|
||||
if (prop->flags & ZEND_ACC_FINAL) {
|
||||
smart_str_appends(str, "final ");
|
||||
}
|
||||
/* These are mutually exclusive */
|
||||
switch (prop->flags & ZEND_ACC_PPP_MASK) {
|
||||
case ZEND_ACC_PUBLIC:
|
||||
|
||||
Reference in New Issue
Block a user