Class PHPStan\BetterReflection\SourceLocator\Exception\FunctionUndefined

extends RuntimeException

This is removed in PR #236 - this should never have existed, but leaving here for BC. This exception is never thrown so you should remove it from your code.

You were probably looking to catch \PHPStan\BetterReflection\Reflector\Exception\IdentifierNotFound instead.

  • Exception implements Throwable
    • RuntimeException
      • PHPStan\BetterReflection\SourceLocator\Exception\FunctionUndefined