hphp_invoke_method

Description

function hphp_invoke_method(
  ?object $obj,
  string $cls,
  string $name,
  mixed $params,
): mixed

hphp_invoke_method() - Used by ReflectionMethod to invoke a method and by ReflectionFunction to invoke a closure.

Parameters

  • object $obj - An instance of the class or null for a static method.
  • string $cls - The name of the class.
  • string $name - The name of the method.
  • \Traversable $params - The parameters to pass to the method.

Return Values

  • mixed - - The result of the invoked method.