Skip to content

Commit

Permalink
Merge pull request #234 from phil-davis/cs-fixer-3.49
Browse files Browse the repository at this point in the history
chore: use php-cs-fixer 3.51
  • Loading branch information
phil-davis authored Mar 4, 2024
2 parents 8c1dc04 + ccbfb1a commit 7aef10a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"sabre/uri" : "^2.3 || ^3.0"
},
"require-dev" : {
"friendsofphp/php-cs-fixer": "^3.38",
"friendsofphp/php-cs-fixer": "^3.51",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-strict-rules": "^1.5",
Expand Down
2 changes: 1 addition & 1 deletion lib/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,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): void
public function sendAsync(RequestInterface $request, ?callable $success = null, ?callable $error = null): void
{
$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 @@ -101,7 +101,7 @@ class Response extends Message implements ResponseInterface
* @param array<string, mixed>|null $headers
* @param resource|string|callable|null $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 7aef10a

Please sign in to comment.