Skip to content

Commit

Permalink
Allowed array Query::$from in REST QueryBuilder
Browse files Browse the repository at this point in the history
Query from accepte Array
  • Loading branch information
hiqsol authored Jul 5, 2018
2 parents 1c46fad + ddbc454 commit 1f887c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rest/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function buildMethod(Query $query)

public function buildUri(Query $query)
{
return $query->from;
return is_array($query->from) ? reset($query->from) : $query->from;
}

public function buildHeaders(Query $query)
Expand Down

0 comments on commit 1f887c5

Please sign in to comment.