]> granicus.if.org Git - php/commitdiff
Fix format arguments
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 25 Jun 2017 20:32:57 +0000 (22:32 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 25 Jun 2017 20:32:57 +0000 (22:32 +0200)
Only dropped one before, both need to go...

Zend/zend_compile.c

index 3835abb3854f460be217fe2ad5174a3cc01e5bd5..f854631f0b3e6958fb742def5e581a6102394341 100644 (file)
@@ -5570,8 +5570,7 @@ 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 an object type can only be NULL",
-                                                               zend_get_type_by_const(ZEND_TYPE_CODE(arg_info->type)));
+                                                               "with an object type can only be NULL");
                                                        break;
                                                        
                                                default: