com php-src: remove duplicate condition already present a line upper: Zend/zend_compile.c

From: Date: Thu, 28 Aug 2014 15:03:39 +0000
Subject: com php-src: remove duplicate condition already present a line upper: Zend/zend_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81265@lists.php.net to get a copy of this message
Commit: d3bfbc079f9f981f6ff9daba4bb8644445acd6e4 Author: Anatol Belski <ab@php.net> Thu, 28 Aug 2014 15:37:30 +0200 Parents: 59286f89f7def7571daa5cfe559c740286b92bf7 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d3bfbc079f9f981f6ff9daba4bb8644445acd6e4 Log: remove duplicate condition already present a line upper Changed paths: M Zend/zend_compile.c Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 47d38c5..961ab48 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"); }

« previous php.cvs (#81265) next »