function gt()

in src/legacy_fixme/coercions.php [123:131]


function gt(mixed $l, mixed $r)[]: bool {
  // avoid doing slow checks in super common case
  if ($l is string && $r is string) {
    return $l > $r;
  } else if ($l is num && $r is num) {
    return $l > $r;
  }
  return __cast_and_compare($l, $r, COMPARISON_TYPE::GT) === 1;
}