From d3bfbc079f9f981f6ff9daba4bb8644445acd6e4 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 28 Aug 2014 15:37:30 +0200 Subject: [PATCH] remove duplicate condition already present a line upper --- Zend/zend_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 47d38c5ee5..961ab4897c 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -5303,7 +5303,7 @@ void zend_compile_params(zend_ast *ast TSRMLS_DC) { "with array type hint can only be an array or NULL"); } } else if (arg_info->type_hint == IS_CALLABLE && default_ast) { - if (default_ast && !has_null_default) { + if (!has_null_default) { zend_error_noreturn(E_COMPILE_ERROR, "Default value for parameters " "with callable type hint can only be NULL"); } -- 2.50.1