Skip to content

Commit 211c424

Browse files
committed
Parenthesize flag check in interface extends export
1 parent e2cc79e commit 211c424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Zend/zend_ast.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@ static ZEND_COLD void zend_ast_export_class_no_header(smart_str *str, zend_ast_d
16691669
zend_ast_export_ns_name(str, decl->child[0], 0, indent);
16701670
}
16711671
if (decl->child[1]) {
1672-
smart_str_appends(str, decl->flags & ZEND_ACC_INTERFACE ? " extends " : " implements ");
1672+
smart_str_appends(str, (decl->flags & ZEND_ACC_INTERFACE) ? " extends " : " implements ");
16731673
zend_ast_export_ex(str, decl->child[1], 0, indent);
16741674
}
16751675
smart_str_appends(str, " {\n");

0 commit comments

Comments
 (0)