src/BaseConnector.php
private function sanitizeHeaders( array $headers = [] ) {
        // Check if headers is set and is not empty
        if ( empty( $headers )) {
            return [];
        }

        foreach($headers as $header => $value) {
            if ( is_array( $value ) && count( $value ) === 1 ) {
                $headers[$header] = array_pop( $value );
            }
        }

        return $headers;
    }
private function sanitizeHeaders( array $headers = [] ) {
        // Check if headers is set and is not empty
        if ( empty( $headers )) {
            return [];
        }

        foreach($headers as $header => $value) {
            if ( is_array( $value ) && count( $value ) === 1 ) {
                $headers[$header] = array_pop( $value );
            }
        }

        return $headers;
    }
@param array $headers

@return array