}
if (ZEND_TYPE_IS_SET(arg_info->type)) {
zend_string *type_str = zend_type_to_string(arg_info->type);
- smart_str_append_printf(str, "%s ", ZSTR_VAL(type_str));
+ smart_str_append(str, type_str);
+ smart_str_appendc(str, ' ');
zend_string_release(type_str);
}
if (ZEND_ARG_SEND_MODE(arg_info)) {
if (prop->flags & ZEND_ACC_STATIC) {
smart_str_appends(str, "static ");
}
+ if (ZEND_TYPE_IS_SET(prop->type)) {
+ zend_string *type_str = zend_type_to_string(prop->type);
+ smart_str_append(str, type_str);
+ smart_str_appendc(str, ' ');
+ zend_string_release(type_str);
+ }
if (!prop_name) {
const char *class_name;
zend_unmangle_property_name(prop->name, &class_name, &prop_name);
Class c {
private $a;
static private $b;
+ public ?int $c = 42;
}
class d extends c {}
?>
--EXPECTF--
Class [ <user> class c ] {
- @@ %s 2-5
+ @@ %s 2-6
- Constants [0] {
}
- Static methods [0] {
}
- - Properties [1] {
+ - Properties [2] {
Property [ <default> private $a ]
+ Property [ <default> public ?int $c ]
}
- Methods [0] {
}
Class [ <user> class d extends c ] {
- @@ %s 7-7
+ @@ %s 8-8
- Constants [0] {
}
- Static methods [0] {
}
- - Properties [0] {
+ - Properties [1] {
+ Property [ <default> public ?int $c ]
}
- Methods [0] {