Skip to content

Commit

Permalink
fix: PHP 8.4 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jul 26, 2024
1 parent c8c2ac8 commit 1af5fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function send(RequestInterface $request): ResponseInterface
* After calling sendAsync, you must therefore occasionally call the poll()
* method, or wait().
*/
public function sendAsync(RequestInterface $request, callable $success = null, callable $error = null)
public function sendAsync(RequestInterface $request, ?callable $success = null, ?callable $error = null)
{
$this->emit('beforeRequest', [$request]);
$this->sendAsyncInternal($request, $success, $error);
Expand Down
2 changes: 1 addition & 1 deletion lib/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Response extends Message implements ResponseInterface
* @param array $headers
* @param resource $body
*/
public function __construct($status = 500, array $headers = null, $body = null)
public function __construct($status = 500, ?array $headers = null, $body = null)
{
if (null !== $status) {
$this->setStatus($status);
Expand Down

0 comments on commit 1af5fd5

Please sign in to comment.