TypeError thrown

base64_decode(): Argument #1 ($string) must be of type string, array given