ReflectionMethod::invoke

( excerpt from http://php.net/manual/en/reflectionmethod.invoke.php )

public function invoke(
  $obj,
  ...$args,
): mixed;

Invokes a reflected method.

Parameters

  • $obj
  • ...$args

Returns

  • mixed - Returns the method result.