Skip to content

Commit 2d011fc

Browse files
committed
Remove redundant check that was already asserted
1 parent 3497fac commit 2d011fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Optimizer/zend_optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ zend_function *zend_optimizer_get_called_func(
977977
case ZEND_INIT_PARENT_PROPERTY_HOOK_CALL: {
978978
zend_class_entry *scope = op_array->scope;
979979
ZEND_ASSERT(scope != NULL);
980-
if (scope && (scope->ce_flags & ZEND_ACC_LINKED) && scope->parent) {
980+
if ((scope->ce_flags & ZEND_ACC_LINKED) && scope->parent) {
981981
zend_class_entry *parent_scope = scope->parent;
982982
zend_string *prop_name = Z_STR_P(CRT_CONSTANT(opline->op1));
983983
zend_property_hook_kind hook_kind = opline->op2.num;

0 commit comments

Comments
 (0)