Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit 945e529

Browse files
committed
Raise minimum php version to 8.1
1 parent bb83e84 commit 945e529

9 files changed

+21
-21
lines changed

.scrutinizer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
build:
22
environment:
33
php:
4-
version: "8.0.14"
4+
version: "8.1"
55
nodes:
66
coverage:
77
tests:

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^8.0||^8.1",
13+
"php": "^8.1",
1414
"ext-json": "*",
1515
"opis/json-schema": "^2.1",
1616
"php-http/discovery": "^1.13",

composer.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
$rectorConfig->import(resource: SetList::CODE_QUALITY);
2020
$rectorConfig->import(SetList::DEAD_CODE);
21-
$rectorConfig->import(SetList::PHP_80);
21+
$rectorConfig->import(SetList::PHP_81);
2222
$rectorConfig->phpstanConfig(__DIR__ . '/phpstan.neon');
2323

2424
$services = $rectorConfig->services();

src/Dispatch/MethodDispatcher.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
final class MethodDispatcher implements MethodDispatcherInterface
2929
{
3030
public function __construct(
31-
private SchemaLoaderInterface $schemaLoader,
32-
private MethodValidatorInterface $methodValidator,
33-
private MethodProviderInterface $methodProvider,
34-
private ?LoggerInterface $logger
31+
private readonly SchemaLoaderInterface $schemaLoader,
32+
private readonly MethodValidatorInterface $methodValidator,
33+
private readonly MethodProviderInterface $methodProvider,
34+
private readonly ?LoggerInterface $logger
3535
) {
3636
}
3737

src/Dispatch/MethodValidator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
final class MethodValidator implements MethodValidatorInterface
1919
{
2020
public function __construct(
21-
private Validator $schemaValidator,
22-
private ErrorFormatter $errorFormatter
21+
private readonly Validator $schemaValidator,
22+
private readonly ErrorFormatter $errorFormatter
2323
) {
2424
}
2525

src/Dispatch/RequestValidator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
final class RequestValidator implements RequestValidatorInterface
2121
{
2222
public function __construct(
23-
private SchemaLoaderInterface $schemaLoader,
24-
private Validator $schemaValidator,
23+
private readonly SchemaLoaderInterface $schemaLoader,
24+
private readonly Validator $schemaValidator,
2525
) {
2626
}
2727

src/Endpoint.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ final class Endpoint implements
3636
EndpointInterface
3737
{
3838
public function __construct(
39-
private RequestValidatorInterface $inputValidator,
40-
private MethodDispatcherInterface $methodRetriever,
41-
private ResponseBuilderInterface $responseBuilder,
42-
private UuidFactoryInterface $uuidFactory,
43-
private StreamFactoryInterface $streamFactory,
44-
private ResponseFactoryInterface $responseFactory,
45-
private ?LoggerInterface $logger = null
39+
private readonly RequestValidatorInterface $inputValidator,
40+
private readonly MethodDispatcherInterface $methodRetriever,
41+
private readonly ResponseBuilderInterface $responseBuilder,
42+
private readonly UuidFactoryInterface $uuidFactory,
43+
private readonly StreamFactoryInterface $streamFactory,
44+
private readonly ResponseFactoryInterface $responseFactory,
45+
private readonly ?LoggerInterface $logger = null
4646
) {
4747
}
4848

src/Exception/InternalException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(
1717
string $message,
1818
int $code,
1919
Throwable $previous = null,
20-
private array $context = []
20+
private readonly array $context = []
2121
) {
2222
parent::__construct($message, $code, $previous);
2323
}

0 commit comments

Comments
 (0)