HH\Lib\Legacy_FIXME\optional_num_to_int_cast_for_switch

Meta Engineer?

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

Do a modification on the switched value

namespace HH\Lib\Legacy_FIXME;

function optional_num_to_int_cast_for_switch(
  ?num $value,
): int;

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

Parameters

  • ?num $value

Returns

  • int