Skip to content

Commit

Permalink
[mod] ci test.
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshige committed Dec 12, 2023
1 parent 1480128 commit 9ffd099
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.0', '8.1', '8.2', '8.3']
php-versions: ['8.1', '8.2', '8.3']
phpunit-versions: [ 'latest' ]
name: PHP ${{ matrix.php-versions }} Test
steps:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^8.3",
"php": "^8.1",
"ext-crypto": "*",
"koriym/http-constants": "^1.1",
"psr/http-message": "^1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Client/GuzzleClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function request(string $method, string $url, array $params = []): Respon
try {
return $this->client->request($method, $url, [$this->bodyType($method) => $params]);
} catch (GuzzleException $e) {
throw new ClientException($e->getMessage(), (int) $e->getCode());
throw new ClientException($e->getMessage(), $e->getCode());
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Sesame.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __invoke(string $uuid, ActionInterface $action): SesamiResponseI

return $this->responseFactory->create($response);
} catch (ClientException $e) {
throw new SesameException($e->getMessage(), (int) $e->getCode());
throw new SesameException($e->getMessage(), $e->getCode());
}
}

Expand All @@ -47,6 +47,6 @@ public static function newInstance(string $apiKey, array $options = []): self

private function buildUri(string $uuid, ActionInterface $action): string
{
return sprintf('https://app.candyhouse.co/api/sesame2/%s%s', $uuid, (string) $action);
return sprintf('https://app.candyhouse.co/api/sesame2/%s%s', $uuid, $action);
}
}
4 changes: 2 additions & 2 deletions src/SesamiResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
use Chanshige\SmartLock\Extend\Json;
use Psr\Http\Message\ResponseInterface as PsrResponseInterface;

final readonly class SesamiResponse implements SesamiResponseInterface
final class SesamiResponse implements SesamiResponseInterface
{
public function __construct(
private PsrResponseInterface $response,
private readonly PsrResponseInterface $response,
) {
}

Expand Down

0 comments on commit 9ffd099

Please sign in to comment.