HH\Lib\Legacy_FIXME\optional_arraykey_to_int_cast_for_switch

Meta Engineer?

This is available as Legacy_FIXME\optional_arraykey_to_int_cast_for_switch in the www repository.

Do a modification on the switched value

namespace HH\Lib\Legacy_FIXME;

function optional_arraykey_to_int_cast_for_switch(
  ?arraykey $value,
): int;

This is in the case where the switched expr is an ?arraykey

Parameters

  • ?arraykey $value

Returns

  • int