mirror of
https://codeberg.org/reflect/reflect-client-php.git
synced 2025-09-13 17:43:42 +02:00
feat: allow empty args to methods with post bodies
This commit is contained in:
parent
0110ac1c04
commit
22b6fd70ed
1 changed files with 3 additions and 3 deletions
|
@ -101,15 +101,15 @@
|
|||
return new Response(...$this->http_call(Method::GET));
|
||||
}
|
||||
|
||||
public function patch(array $payload): Response {
|
||||
public function patch(?array $payload = []): Response {
|
||||
return new Response(...$this->http_call(Method::PATCH, $payload));
|
||||
}
|
||||
|
||||
public function put(array $payload): Response {
|
||||
public function put(?array $payload = []): Response {
|
||||
return new Response(...$this->http_call(Method::PUT, $payload));
|
||||
}
|
||||
|
||||
public function post(array $payload): Response {
|
||||
public function post(?array $payload = []): Response {
|
||||
return new Response(...$this->http_call(Method::POST, $payload));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue