HH\Lib\Legacy_FIXME\cast_for_exponent

Meta Engineer?

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

Does the PHP style behaviour for casting when doing an exponentiation

namespace HH\Lib\Legacy_FIXME;

function cast_for_exponent(
  mixed $value,
): dynamic;

That happens under the following situations

  1. function pointers, and arrays get converted to 0
  2. see castForArithmatic

Parameters

  • mixed $value

Returns

  • dynamic