]> granicus.if.org Git - php/commitdiff
Fix the error message of attribute flag validation
authorMáté Kocsis <kocsismate@woohoolabs.com>
Fri, 5 Mar 2021 23:56:25 +0000 (00:56 +0100)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Fri, 5 Mar 2021 23:56:25 +0000 (00:56 +0100)
Zend/tests/attributes/021_attribute_flags_type_is_validated.phpt
Zend/zend_attributes.c

index 7c1bfd2da72bf9fa0285ff35d6350dcd2f703d19..01ab29c5efab91fd13010d3e788b7634580c2aa7 100644 (file)
@@ -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
index ae07802b5bcb5f383974fed2be9ee923cce47a93..f8d384301af5a4ed644b2151debdd7e510788246 100644 (file)
@@ -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)
                        );
                }