Skip to content

Commit

Permalink
Generate <?hh // partial instead of just <?hh
Browse files Browse the repository at this point in the history
May be mandatory in 4.1
  • Loading branch information
fredemmott committed Feb 20, 2019
1 parent 9a86d76 commit 46b37e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CodegenFile.hack
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ final class CodegenFile {
case CodegenFileType::HACK_DECL:
return '<?hh // decl';
case CodegenFileType::HACK_PARTIAL:
return '<?hh';
return '<?hh // partial';
case CodegenFileType::HACK_STRICT:
return '<?hh // strict';
}
Expand Down
4 changes: 2 additions & 2 deletions tests/CodegenFileTest.codegen
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ const string HERP = 'derp';

!@#$%codegentest:testExecutable
#!/usr/bin/env hhvm
<?hh
<?hh // partial
// Codegen Tests
/**
* This file is generated. Do not modify it manually!
*
* @-generated SignedSource<<f3a2d86a759204d632f25dcf3d8731bb>>
* @-generated SignedSource<<01b3a9234148420d95059e79f8a1d8a7>>
*/
require_once('vendor/autoload.php');

Expand Down

0 comments on commit 46b37e1

Please sign in to comment.