Skip to content

Commit

Permalink
build: upd deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Feb 1, 2025
1 parent cadb605 commit cf57a0e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit cf57a0e

Please sign in to comment.