HH\Facts\types_with_attribute

Get all types matching the given filters

namespace HH\Facts;

function types_with_attribute(
  classname<\HH\ClassLikeAttribute> $attribute,
): vec<string, classname<mixed>>;

Throws InvalidOperationException if Facts is not enabled.

Parameters

  • classname<\HH\ClassLikeAttribute> $attribute

Returns

  • vec<string, classname<mixed>>