Class PHPStan\BetterReflection\SourceLocator\Type\AutoloadSourceLocator

extends AbstractSourceLocator

Use PHP's built in autoloader to locate a class, without actually loading.

There are some prerequisites...

  • we expect the autoloader to load classes from a file (i.e. using require/include)
  • your autoloader of choice does not replace stream wrappers
Methods
Methods inherited from PHPStan\BetterReflection\SourceLocator\Type\AbstractSourceLocator
locateIdentifier(), locateIdentifiersByType()