From 1c0fbc72ca6e3aac1bc4600a2df31e80849568e9 Mon Sep 17 00:00:00 2001 From: Jan Oravec Date: Mon, 27 Oct 2014 07:01:27 -0700 Subject: [PATCH] Unbreak hh tests in trunk Summary: Support for idx() is now built-in inside Hack. It should also be HHVM built-in, so this method should not be needed. Reviewed By: @markw65 Differential Revision: D1640360 --- hphp/test/frameworks/utils.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hphp/test/frameworks/utils.php b/hphp/test/frameworks/utils.php index eeed93c48f20b..f84deb65e65f7 100644 --- a/hphp/test/frameworks/utils.php +++ b/hphp/test/frameworks/utils.php @@ -136,10 +136,6 @@ function find_all_files_containing_text( return $files; } -function idx(array $array, mixed $key, mixed $default = null): mixed { - return isset($array[$key]) ? $array[$key] : $default; -} - function command_exists(string $cmd): bool { $ret = shell_exec("which $cmd"); return !empty($ret);