Skip to content

Commit a54f481

Browse files
committed
fix options
1 parent 3f3f8a4 commit a54f481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Http/Client/PendingRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public function dd()
589589
*/
590590
public function get(string $url, $query = null)
591591
{
592-
return $this->send('GET', $url, [
592+
return $this->send('GET', $url, func_num_args() === 1 ? [] : [
593593
'query' => $query,
594594
]);
595595
}
@@ -603,7 +603,7 @@ public function get(string $url, $query = null)
603603
*/
604604
public function head(string $url, $query = null)
605605
{
606-
return $this->send('HEAD', $url, [
606+
return $this->send('HEAD', $url, func_num_args() === 1 ? [] : [
607607
'query' => $query,
608608
]);
609609
}

0 commit comments

Comments
 (0)