Permalink
Browse files

Set UseStrictTypes for hh files

Summary: as in title

Reviewed By: jamesjwu

Differential Revision: D7214819

fbshipit-source-id: 368499d81012758c8e3e99d47bd38f5182acd282
  • Loading branch information...
vladima authored and hhvm-bot committed Mar 10, 2018
1 parent 68f4171 commit b4be58623b3b88c6a09e0dd21ae74ac1efc0335d
Showing with 3 additions and 0 deletions.
  1. +3 −0 hphp/runtime/vm/as.cpp
@@ -3098,6 +3098,9 @@ std::unique_ptr<UnitEmitter> assemble_string(
AsmState as(instr, callbacks);
as.ue = ue.get();
parse(as);
if (ue->m_isHHFile) {
ue->m_useStrictTypes = true;
}
} catch (const std::exception& e) {
if (!swallowErrors) throw;
ue = createFatalUnit(sd, md5, FatalOp::Runtime, makeStaticString(e.what()));

0 comments on commit b4be586

Please sign in to comment.