Skip to content

Commit a731847

Browse files
committed
Use #[\AllowDynamicProperties] attribute in stubs
1 parent e104840 commit a731847

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Zend/zend_builtin_functions.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ ZEND_MINIT_FUNCTION(core) { /* {{{ */
3838
zend_register_default_classes();
3939

4040
zend_standard_class_def = register_class_stdClass();
41-
zend_add_class_attribute(zend_standard_class_def, zend_ce_allow_dynamic_properties->name, 0);
42-
zend_standard_class_def->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES;
4341

4442
return SUCCESS;
4543
}

Zend/zend_builtin_functions.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/** @generate-class-entries */
44

5+
#[\AllowDynamicProperties]
56
class stdClass
67
{
78
}

Zend/zend_builtin_functions_arginfo.h

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)