summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2021-03-06 00:56:25 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2021-03-06 00:56:25 +0100
commit0f8312342f3b0a639cd583b53ccdea56019d2685 (patch)
tree4eb5ae0309fa55a98613c3a517fe1d0c46530379 /Zend
parent8462a3de1a1092e5526940e5e447bcf6a7a9a5d1 (diff)
downloadphp-git-0f8312342f3b0a639cd583b53ccdea56019d2685.tar.gz
Fix the error message of attribute flag validation
Diffstat (limited to 'Zend')
-rw-r--r--Zend/tests/attributes/021_attribute_flags_type_is_validated.phpt2
-rw-r--r--Zend/zend_attributes.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/tests/attributes/021_attribute_flags_type_is_validated.phpt b/Zend/tests/attributes/021_attribute_flags_type_is_validated.phpt
index 7c1bfd2da7..01ab29c5ef 100644
--- a/Zend/tests/attributes/021_attribute_flags_type_is_validated.phpt
+++ b/Zend/tests/attributes/021_attribute_flags_type_is_validated.phpt
@@ -8,4 +8,4 @@ class A1 { }
?>
--EXPECTF--
-Fatal error: Attribute::__construct(): Argument #1 ($flags) must must be of type int, string given in %s
+Fatal error: Attribute::__construct(): Argument #1 ($flags) must be of type int, string given in %s
diff --git a/Zend/zend_attributes.c b/Zend/zend_attributes.c
index ae07802b5b..f8d384301a 100644
--- a/Zend/zend_attributes.c
+++ b/Zend/zend_attributes.c
@@ -42,7 +42,7 @@ void validate_attribute(zend_attribute *attr, uint32_t target, zend_class_entry
if (Z_TYPE(flags) != IS_LONG) {
zend_error_noreturn(E_ERROR,
- "Attribute::__construct(): Argument #1 ($flags) must must be of type int, %s given",
+ "Attribute::__construct(): Argument #1 ($flags) must be of type int, %s given",
zend_zval_type_name(&flags)
);
}