Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
Explicitly specify partial mode
Browse files Browse the repository at this point in the history
Needed for 4.1 and nightlies

Manual change to src/Writer.hack, new hhast-migrate for other files.
  • Loading branch information
fredemmott committed Mar 6, 2019
1 parent 9c241b8 commit 19b2188
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Writer.hack
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ final class Writer {
foreach (keyset['hh_autoload.php', 'hh_autoload.hh'] as $legacy_file) {
\file_put_contents(
$directory.'/'.$legacy_file,
"<?hh\n".
"<?hh // partial\n".
"require_once(__DIR__.'/autoload.hack');\n".
"Facebook\AutoloadMap\initialize();\n",
);
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bootstrap_test.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh
<?hh // partial
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/hh-only/test-dev.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh
<?hh // partial
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/hh-only/test-prod.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh
<?hh // partial
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/psr-0/src/PSR0TestInHH.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh
<?hh // partial
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/psr-4/src/HHPSR4Test.hh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?hh
<?hh // partial
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
Expand Down

0 comments on commit 19b2188

Please sign in to comment.