src/MastodonClient.php
public function get(string $api, array $query = []): array
    {
        $options = [];

        if (!empty($query)) {
            $options['query'] = $query;
        }

        return $this->call('GET', $api, $options);
    }
public function get(string $api, array $query = []): array
    {
        $options = [];

        if (!empty($query)) {
            $options['query'] = $query;
        }

        return $this->call('GET', $api, $options);
    }
@param string $api
@param array  $query

@return array