Actually, the extension can be anything. By default we support `.php` (note that .hh is actually a C++ header extension). 

The actual way to detect this is to check for the opening tag to be `<?hh`