The return type is declared as string, but actually the method can also return an array.
As per documentation, the type array has been introduced in 12.3, but the return type declaration has not been modified accordingly.
No testing Instructions, please merge on review.