Get the types defined in the given path

namespace HH;

function autoload_path_to_types(
  string $path,
): vec<classname<mixed>>;

The path may be relative to the repo root or absolute. But this function will not dereference symlinks for you, so providing a path with symlinks may cause this function to return an empty vec when you expected results.

Throws InvalidOperationException if native autoloading is disabled.


  • string $path


  • vec<classname<mixed>>