diff --git a/src/Query.php b/src/Query.php index c80c071..8598dac 100644 --- a/src/Query.php +++ b/src/Query.php @@ -69,7 +69,7 @@ class Query implements QueryInterface $this->setEndpoint($query); $this->setAttributes($endpoint); } else { - throw new QueryException('Specified endpoint is not correct'); + throw new QueryException('Specified endpoint is incorrect'); } } diff --git a/src/ShortsTrait.php b/src/ShortsTrait.php index 0eba55d..62006f8 100644 --- a/src/ShortsTrait.php +++ b/src/ShortsTrait.php @@ -116,11 +116,11 @@ trait ShortsTrait * @param array|null $where List of where filters * @param string|null $operations Some operations which need make on response * @param string|null $tag Mark query with tag - * @return \RouterOS\Client + * @return \RouterOS\ResponseIterator * @throws \RouterOS\Exceptions\QueryException * @since 1.0.0 */ - public function qri(string $endpoint, array $where = null, string $operations = null, string $tag = null): array + public function qri(string $endpoint, array $where = null, string $operations = null, string $tag = null): ResponseIterator { return $this->query($endpoint, $where, $operations, $tag)->readAsIterator(); }