HACK_REMOVE_SOFT_TYPES(1)

NAME
hack_remove_soft_types - Remove "soft types" from a Hack codebase

SYNOPSIS
hack_remove_soft_types [--remove-from-log | --harden] FILE

DESCRIPTION
Removes so-called "soft" type annotations from a Hack codebase. Soft type annotations are parameter or return type annotations prefixed with an "@" so that they log a warning instead of a recoverable error. This tool is part of the PHP to Hack conversion process. See http://docs.hhvm.com/manual/en/install.hack.conversion.php for detailed information and documentation on that process, including how hack_remove_soft_types(1) fits into it.

OPTIONS

--remove-from-log
    Read FILE as an HHVM logfile. For any warnings in that logfile that appear to come from failures to match a soft type annotation, remove the offending soft type annotation from the file indicated inside the log message.

--harden
    Read FILE as a Hack source file. For any soft type annotations appearing in that source file, remove the "@" prefix and thus convert it into a hard failure.

BUGS
The Hack language is part of the HHVM project. Known bugs can be found at that tracker, and new ones should be reported there as well: https://github.com/facebook/hhvm/issues

SEE ALSO
hh_client(1), hh_server(1), hackificator(1).
http://docs.hhvm.com/manual/en/install.hack.conversion.php
http://www.hacklang.org/