diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-02-25 20:58:33 +0100 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-02-26 15:00:08 +0100 |
commit | 960318ed95d17bd30c2896e2f3189ebffb965dce (patch) | |
tree | 2890972c266dabe649a44b540869a49e41a3e450 /ext/standard/string.c | |
parent | c7094d892639fedffb67c273f8fd44f3ffff86d6 (diff) | |
download | php-git-960318ed95d17bd30c2896e2f3189ebffb965dce.tar.gz |
Change argument error message format
Closes GH-5211
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index bd68a6c08b..ec397fe97c 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1276,7 +1276,7 @@ PHP_FUNCTION(implode) if (pieces == NULL) { if (arg1_array == NULL) { - zend_type_error("%s() expects argument #1 ($pieces) to be of type array, string given", get_active_function_name()); + zend_type_error("%s(): Argument #1 ($pieces) must be of type array, string given", get_active_function_name()); RETURN_THROWS(); } @@ -1284,7 +1284,7 @@ PHP_FUNCTION(implode) pieces = arg1_array; } else { if (arg1_str == NULL) { - zend_type_error("%s() expects argument #1 ($glue) to be of type string, array given", get_active_function_name()); + zend_type_error("%s(): Argument #1 ($glue) must be of type string, array given", get_active_function_name()); RETURN_THROWS(); } } |