TypeError thrown

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