Skip to content

Commit

Permalink
Merge pull request #241 from phil-davis/ci-php-84
Browse files Browse the repository at this point in the history
chore: add PHP 8.4 to CI of 5.1 branch
  • Loading branch information
phil-davis authored Jul 26, 2024
2 parents ab04b8f + 1af5fd5 commit da737de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ jobs:
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
coverage: ['xdebug']
code-style: ['no']
code-analysis: ['no']
include:
- php-versions: '7.1'
code-style: 'yes'
code-analysis: 'yes'
- php-versions: '8.4'
code-style: 'no'
code-analysis: 'yes'
steps:
- name: Checkout
Expand Down Expand Up @@ -45,7 +50,7 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Code Analysis (PHP CS-Fixer)
if: matrix.code-analysis == 'yes'
if: matrix.code-style == 'yes'
run: php vendor/bin/php-cs-fixer fix --dry-run --diff

- name: Code Analysis (PHPStan)
Expand Down
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 da737de

Please sign in to comment.