Error: implode(): Argument #2 ($array) must be of type ?array, string given: implode(): Argument #2 ($array) must be of type ?array, string given