Skip to content

Commit 797e870

Browse files
committed
Avoid reloading
1 parent 117c37d commit 797e870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_inheritance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ static void do_inheritance_check_on_method(zend_function *child, zend_function *
557557
/* You cannot change from static to non static and vice versa.
558558
*/
559559
if (UNEXPECTED((child_flags & ZEND_ACC_STATIC) != (parent_flags & ZEND_ACC_STATIC))) {
560-
if (child->common.fn_flags & ZEND_ACC_STATIC) {
560+
if (child_flags & ZEND_ACC_STATIC) {
561561
zend_error_noreturn(E_COMPILE_ERROR, "Cannot make non static method %s::%s() static in class %s", ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name), ZEND_FN_SCOPE_NAME(child));
562562
} else {
563563
zend_error_noreturn(E_COMPILE_ERROR, "Cannot make static method %s::%s() non static in class %s", ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name), ZEND_FN_SCOPE_NAME(child));

0 commit comments

Comments
 (0)