Skip to content

Commit b169312

Browse files
committed
Make SensitiveParamterValue::$value readonly
1 parent b6ee006 commit b169312

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/zend_attributes.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct() {}
2626

2727
final class SensitiveParameterValue
2828
{
29-
private mixed $value;
29+
private readonly mixed $value;
3030

3131
public function __construct(mixed $value) {}
3232

Zend/zend_attributes_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: f5eecf818174dad27449a9f1c944f47a17d63c30 */
2+
* Stub hash: dad2a0b36a6868cb6a15b600d12e155c40779114 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Attribute___construct, 0, 0, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "Attribute::TARGET_ALL")
@@ -134,7 +134,7 @@ static zend_class_entry *register_class_SensitiveParameterValue(void)
134134
zval property_value_default_value;
135135
ZVAL_UNDEF(&property_value_default_value);
136136
zend_string *property_value_name = zend_string_init("value", sizeof("value") - 1, 1);
137-
zend_declare_typed_property(class_entry, property_value_name, &property_value_default_value, ZEND_ACC_PRIVATE, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
137+
zend_declare_typed_property(class_entry, property_value_name, &property_value_default_value, ZEND_ACC_PRIVATE|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_ANY));
138138
zend_string_release(property_value_name);
139139

140140
return class_entry;

0 commit comments

Comments
 (0)