From 98743c645452945629be9e70a41653d00ec626d8 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sun, 19 Sep 2021 14:54:07 +0200 Subject: [PATCH] Make MatrixHttpApi->send public --- src/MatrixHttpApi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MatrixHttpApi.php b/src/MatrixHttpApi.php index 0a8b367..193d079 100644 --- a/src/MatrixHttpApi.php +++ b/src/MatrixHttpApi.php @@ -900,8 +900,8 @@ class MatrixHttpApi { * @throws MatrixRequestException * @throws MatrixHttpLibException */ - private function send(string $method, string $path, $content = null, array $queryParams = [], array $headers = [], - $apiPath = self::MATRIX_V2_API_PATH, $returnJson = true) { + public function send(string $method, string $path, $content = null, array $queryParams = [], array $headers = [], + string $apiPath = self::MATRIX_V2_API_PATH, bool $returnJson = true) { $options = []; if (!in_array('User-Agent', $headers)) { $headers['User-Agent'] = 'php-matrix-sdk/' . self::VERSION;