com php-src: makes no sense: Zend/zend_compile.c
| From: | Bob Weinand | Date: | Wed, 09 Mar 2016 14:34:01 +0000 |
| Subject: | com php-src: makes no sense: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95697@lists.php.net to get a copy of this message | ||
Commit: 5817fa33b38cd6ba009ed5a72a0be8f2f8504399
Author: Joe Watkins <krakjoe@php.net> Wed, 9 Mar 2016 14:34:01 +0000
Parents: fb4f14f4cbe9d8442bbd24a0b9928c17c00975c2
Branches: typed_ref_properties
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5817fa33b38cd6ba009ed5a72a0be8f2f8504399
Log:
makes no sense
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index a72909e..f212097 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5328,7 +5328,7 @@ void zend_compile_prop_decl(zend_ast *ast) /* {{{ */
if (type_ast) {
if (flags & ZEND_ACC_STATIC) {
- zend_error_noreturn(ce->type == ZEND_USER_CLASS ? E_COMPILE_ERROR : E_CORE_ERROR,
+ zend_error_noreturn(E_COMPILE_ERROR,
"Typed property %s::$%s must not be static",
ZSTR_VAL(ce->name),
ZSTR_VAL(name));