Skip to content

Commit 9efccd2

Browse files
tontonsbiluuu1994
andcommitted
Update Zend/zend_compile.c
Co-authored-by: Ilija Tovilo <[email protected]>
1 parent 77f5ebc commit 9efccd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8988,7 +8988,7 @@ static void zend_compile_implements(zend_ast *ast) /* {{{ */
89888988
interface_names[i].name =
89898989
zend_resolve_const_class_name_reference(class_ast, "interface name");
89908990
interface_names[i].lc_name = zend_string_tolower(interface_names[i].name);
8991-
interface_names[i].is_optional = ZEND_CLASS_NAME_OPTIONAL & class_ast->attr;
8991+
interface_names[i].is_optional = class_ast->attr & ZEND_CLASS_NAME_OPTIONAL;
89928992
}
89938993

89948994
ce->num_interfaces = list->children;

0 commit comments

Comments
 (0)