Skip to content
Permalink
Browse files

flip the default of assume_php

Summary: Keeping existing behavior in hh_single_type_check so it's a minimal change for cherry-picking.

Reviewed By: periodic1236

Differential Revision: D6596329

fbshipit-source-id: 61f97492475b36e65fd2704e80921b33e84447cc
  • Loading branch information
fredemmott authored and hhvm-bot committed Jan 5, 2018
1 parent 2998c5f commit 4e0ad79376cce8e2feb504ee9e3f7756c7bfbfab
Showing with 2 additions and 1 deletion.
  1. +1 −0 hphp/hack/src/hh_single_type_check.ml
  2. +1 −1 hphp/hack/src/options/globalOptions.ml
@@ -255,6 +255,7 @@ let parse_options () =
| None -> die usage in
let tcopt = {
GlobalOptions.default with
GlobalOptions.tco_assume_php = true;
GlobalOptions.tco_safe_array = !safe_array;
GlobalOptions.tco_safe_vector_array = !safe_vector_array;
GlobalOptions.po_deregister_php_stdlib = !deregister_attributes;
@@ -150,7 +150,7 @@ let tco_migration_flags_all =
]

let default = {
tco_assume_php = true;
tco_assume_php = false;
tco_safe_array = false;
tco_safe_vector_array = false;
tco_user_attrs = None;

0 comments on commit 4e0ad79

Please sign in to comment.
You can’t perform that action at this time.