com php-src: Fix typo: Zend/tests/object_types/invalid_defa ult_value.phpt Zend/zend_compile.c
| From: | Nikita Popov | Date: | Sun, 25 Jun 2017 20:28:56 +0000 |
| Subject: | com php-src: Fix typo: Zend/tests/object_types/invalid_defa ult_value.phpt Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98222@lists.php.net to get a copy of this message | ||
Commit: 9dfcb04f10996b86159c5ed077b2ab3ba83a55ff
Author: Nikita Popov <nikita.ppv@gmail.com> Sun, 25 Jun 2017 22:28:56 +0200
Parents: 8e10c9d37398f0f3eece85fca713f19d11cdfb32
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9dfcb04f10996b86159c5ed077b2ab3ba83a55ff
Log:
Fix typo
Changed paths:
M Zend/tests/object_types/invalid_default_value.phpt
M Zend/zend_compile.c
Diff:
diff --git a/Zend/tests/object_types/invalid_default_value.phpt
b/Zend/tests/object_types/invalid_default_value.phpt
index 7317c5f..2768e00 100644
--- a/Zend/tests/object_types/invalid_default_value.phpt
+++ b/Zend/tests/object_types/invalid_default_value.phpt
@@ -7,4 +7,4 @@ function test(object $obj = 42) { }
?>
--EXPECTF--
-Fatal error: Default value for parameters with a object type can only be NULL in %s on line %d
+Fatal error: Default value for parameters with an object type can only be NULL in %s on line %d
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index d44417a..3835abb 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5570,8 +5570,8 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
case IS_OBJECT:
zend_error_noreturn(E_COMPILE_ERROR, "Default value for parameters "
- "with a %s type can only be NULL",
- zend_get_type_by_const(ZEND_TYPE_CODE(arg_info->type)),
zend_get_type_by_const(ZEND_TYPE_CODE(arg_info->type)));
+ "with an object type can only be NULL",
+ zend_get_type_by_const(ZEND_TYPE_CODE(arg_info->type)));
break;
default: