Skip to content

Commit

Permalink
fix options
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 8, 2022
1 parent 3f3f8a4 commit a54f481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Http/Client/PendingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public function dd()
*/
public function get(string $url, $query = null)
{
return $this->send('GET', $url, [
return $this->send('GET', $url, func_num_args() === 1 ? [] : [
'query' => $query,
]);
}
Expand All @@ -603,7 +603,7 @@ public function get(string $url, $query = null)
*/
public function head(string $url, $query = null)
{
return $this->send('HEAD', $url, [
return $this->send('HEAD', $url, func_num_args() === 1 ? [] : [
'query' => $query,
]);
}
Expand Down

0 comments on commit a54f481

Please sign in to comment.