Skip to content

Commit

Permalink
Unbreak hh tests in trunk
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jano authored and hhvm-bot committed Oct 27, 2014
1 parent f7c8462 commit 1c0fbc7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hphp/test/frameworks/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c0fbc7

Please sign in to comment.