Skip to content

Instantly share code, notes, and snippets.

@jazzdan
Created April 25, 2015 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazzdan/00ac393db544f7c99732 to your computer and use it in GitHub Desktop.
Save jazzdan/00ac393db544f7c99732 to your computer and use it in GitHub Desktop.
main.hh
<?hh
declare(strict_types=1);
function myLog(?string $message=null): string {
if ($message === null) {
return '';
} else {
return $message;
}
}
echo myLog("Hello world!\n");
echo myLog();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment