We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd3ae60 commit 037775bCopy full SHA for 037775b
Zend/zend_attributes.c
@@ -484,7 +484,7 @@ ZEND_API zend_internal_attribute *zend_mark_internal_attribute(zend_class_entry
484
if (zend_string_equals(attr->name, zend_ce_attribute->name)) {
485
internal_attr = pemalloc(sizeof(zend_internal_attribute), 1);
486
internal_attr->ce = ce;
487
- if (Z_TYPE(attr->args[0].value) == IS_NULL) {
+ if (attr->argc == 0) {
488
// Apply default of Attribute::TARGET_ALL
489
internal_attr->flags = ZEND_ATTRIBUTE_TARGET_ALL;
490
} else {
0 commit comments