HH\Facts\type_to_path

Return the only path defining a given symbol

namespace HH\Facts;

function type_to_path(
  string $type_name,
): ?string;

Return null if the symbol is not defined, or is defined in more than one place.

Throw InvalidOperationException if Facts is not enabled.

Parameters

  • string $type_name

Returns

  • ?string