Skip to content

Commit

Permalink
[mod] php8.3 only
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshige committed Dec 12, 2023
1 parent 9ffd099 commit 8d8447f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 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.1', '8.2', '8.3']
php-versions: ['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.1",
"php": "^8.3",
"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 @@ -12,7 +12,7 @@
use GuzzleHttp\RequestOptions;
use Psr\Http\Message\ResponseInterface;

final class GuzzleClient implements ClientInterface
final readonly class GuzzleClient implements ClientInterface
{
public function __construct(
private HttpClientInterface $client,
Expand Down
2 changes: 1 addition & 1 deletion src/Extend/AesCmac.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

final class AesCmac
{
private const ALGORITHM = 'AES-128-CBC';
private const string ALGORITHM = 'AES-128-CBC';

/**
* Returns a MAC in hex encoding.
Expand Down
6 changes: 3 additions & 3 deletions src/Sesame.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

use function sprintf;

final class Sesame implements SesameInterface
final readonly class Sesame implements SesameInterface
{
public function __construct(
private readonly ClientInterface $client,
private readonly ResponseFactoryInterface $responseFactory,
private ClientInterface $client,
private ResponseFactoryInterface $responseFactory,
) {
}

Expand Down
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 class SesamiResponse implements SesamiResponseInterface
final readonly class SesamiResponse implements SesamiResponseInterface
{
public function __construct(
private readonly PsrResponseInterface $response,
private PsrResponseInterface $response,
) {
}

Expand Down

0 comments on commit 8d8447f

Please sign in to comment.