소스 검색

[php] make sure to unset `constructor_block` (closes #4723)

Simon Krajewski 9 년 전
부모
커밋
f95d3402ba
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      genphp.ml

+ 1 - 0
genphp.ml

@@ -2044,6 +2044,7 @@ let generate_class ctx c =
 		} in
 		ctx.constructor_block <- true;
 		generate_field ctx false f;
+		ctx.constructor_block <- false;
 	);
 
 	List.iter (generate_field ctx false) c.cl_ordered_fields;