HH\Lib\Legacy_FIXME\cmp

Facebook Engineer?

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

Does the PHP style behaviour when doing <, <=, >, >=, <=>

namespace HH\Lib\Legacy_FIXME;

function cmp(
  mixed $l,
  mixed $r,
): int;

tl/dr this involves a lot of potential implicit coercions. see __cast_and_compare for the complete picture.

Parameters

  • mixed $l
  • mixed $r

Returns

  • int