> protected function getDescription(): ?string { return 'A small example of how to interact with superglobals and the '. 'untyped data they can contain.'; } protected function getFilenames(): Vector { return Vector { 'NonStrictFile.php', 'StrictFile.php', }; } protected function getDocs(): Vector<(string, string)> { return Vector { tuple('invariant()', 'hack.otherrulesandfeatures.invariant'), }; } public function getDemoFilename(): string { return 'demo.php'; } public function getDemoResult(): string { return get_and_post_main(); } public function getDemoXHP(): :xhp { $url = '/recipes/get-and-post/'; return
GET myIntParam=8675309
GET myIntParam=boom
; } }