How to return an array reference in C++

Thanks for the quick reply!

If I understood correctly, the suggestion is to add const to the return type, right?

	UFUNCTION(BlueprintCallable, BlueprintPure, Category = "Stars System")
	FORCEINLINE **const** TArray<FStarCluster>& GetStarClusters() const { return StarClusters; }

this is causing this compilation error:

Inappropriate keyword 'const' on variable of type 'TArray'

This error makes no sense to me as I can use const for parameters of type TArray. I understand the contexts are different, but why?
I’m wondering if I’m doing something wrong but I’m blind.