diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ede29df..69b9268 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,13 +46,22 @@ jobs: composer-flags: '--prefer-lowest' job-description: 'Ubuntu; PHP 8.3; lowest-deps' + - operating-system: 'ubuntu-latest' + php-version: '8.4' + job-description: 'Ubuntu; PHP 8.4; latest-deps' + + - operating-system: 'ubuntu-latest' + php-version: '8.4' + composer-flags: '--prefer-lowest' + job-description: 'Ubuntu; PHP 8.4; lowest-deps' + - operating-system: 'windows-latest' - php-version: '8.3' - job-description: 'Windows; PHP 8.3; latest-deps' + php-version: '8.4' + job-description: 'Windows; PHP 8.4; latest-deps' - operating-system: 'macos-latest' - php-version: '8.3' - job-description: 'MacOS; PHP 8.3; latest-deps' + php-version: '8.4' + job-description: 'MacOS; PHP 8.4; latest-deps' name: ${{ matrix.job-description }} diff --git a/composer.json b/composer.json index 72af36a..a495dad 100644 --- a/composer.json +++ b/composer.json @@ -11,11 +11,11 @@ ], "require": { "php": ">=8.0.2", - "symfony/http-client": "^5.4||^6.0||^7.0" + "symfony/http-client": "^5.4||^6.40||^7.0" }, "require-dev": { - "phpunit/phpunit": "^9.6", - "friendsofphp/php-cs-fixer": "^3.46" + "phpunit/phpunit": "^9.6.22", + "friendsofphp/php-cs-fixer": "^3.68.5" }, "autoload": { "psr-4": { diff --git a/src/Request.php b/src/Request.php index cf2e559..cbab5bf 100644 --- a/src/Request.php +++ b/src/Request.php @@ -14,7 +14,7 @@ class Request private HttpClientInterface $httpClient; protected string $apiEndpoint = 'https://api.stopforumspam.org/api'; - public function __construct(HttpClientInterface $httpClient = null, Options $options = null) + public function __construct(?HttpClientInterface $httpClient = null, ?Options $options = null) { $this->options = $options ?: new Options(); $this->httpClient = $httpClient ?: HttpClient::create([