Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jun 25, 2017
1 parent 8e10c9d commit 9dfcb04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Zend/tests/object_types/invalid_default_value.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9dfcb04

Please sign in to comment.