HH\Facts\method_attributes

Get all attributes on the given method

namespace HH\Facts;

function method_attributes(
  classname<mixed> $type,
  string $method,
): vec<string, classname<\HH\MethodAttribute>>;

Return an empty vec if the method does not exist.

Throw InvalidOperationException if Facts is not enabled.

Parameters

  • classname<mixed> $type
  • string $method

Returns

  • vec<string, classname<\HH\MethodAttribute>>