]> granicus.if.org Git - php/commitdiff
Fix typo
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 25 Jun 2017 20:28:56 +0000 (22:28 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 25 Jun 2017 20:28:56 +0000 (22:28 +0200)
Zend/tests/object_types/invalid_default_value.phpt
Zend/zend_compile.c

index 7317c5f2b584cdc543b7b991cfd7a5454b644d39..2768e00e7d1654384ef12ee7ba453ca54e625758 100644 (file)
@@ -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
index d44417a178907bc3a1ac3534cd56d1039385c46c..3835abb3854f460be217fe2ad5174a3cc01e5bd5 100644 (file)
@@ -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: