Skip to content

Commit

Permalink
Merge pull request #9 from craigpotter/add-php8.4-support
Browse files Browse the repository at this point in the history
Feature | PHP 8.4 Support (Tests)
  • Loading branch information
craigpotter authored Dec 17, 2024
2 parents 982d184 + fe8059a commit f994cd0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: true
matrix:
os: [ ubuntu-latest, windows-latest ]
php: [ 8.1, 8.2 ]
php: [ 8.1, 8.2, 8.3, 8.4 ]
stability: [ prefer-lowest, prefer-stable ]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion src/Fca.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace CraigPotter\Fca;

use Saloon\Http\Connector;
use Saloon\Http\Request;
use Saloon\Http\Response;
use Saloon\Http\Connector;
use Saloon\PaginationPlugin\Paginator;
use CraigPotter\Fca\Requests\GetEndpoint;
use CraigPotter\Fca\Resources\FirmResource;
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/FirmResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace CraigPotter\Fca\Resources;

use Saloon\Http\Connector;
use Saloon\Http\Response;
use Saloon\Http\Connector;
use Saloon\PaginationPlugin\PagedPaginator;
use Saloon\Exceptions\Request\RequestException;
use CraigPotter\Fca\Requests\Firm\GetFirmDetails;
Expand All @@ -30,7 +30,7 @@ public function exists(): bool
try {
$response = $this->connector->send(new GetFirmDetails($this->frn));
} catch (RequestException $e) {
if(str_contains($e->getMessage(), 'Firm not found')) {
if (str_contains($e->getMessage(), 'Firm not found')) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/FirmResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
declare(strict_types=1);

use CraigPotter\Fca\Fca;
use Saloon\Http\Faking\MockClient;
use Saloon\Http\PendingRequest;
use Saloon\Http\Faking\MockClient;
use Saloon\Http\Faking\MockResponse;
use CraigPotter\Fca\DataObjects\Address;
use CraigPotter\Fca\DataObjects\Individual;
Expand Down

0 comments on commit f994cd0

Please sign in to comment.