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

Commit a79e536

Browse files
committed
Update dependencies
...also set php required to 8.3
1 parent f60f990 commit a79e536

File tree

7 files changed

+50
-48
lines changed

7 files changed

+50
-48
lines changed

composer.json

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

composer.lock

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use Rector\Config\RectorConfig;
77
use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector;
88
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
9+
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
910

1011
return RectorConfig::configure()
1112
->withImportNames()
@@ -14,11 +15,12 @@
1415
__DIR__ . '/tests'
1516
])
1617
->withPreparedSets(deadCode: true, codeQuality: true, codingStyle: true)
17-
->withPhpSets(php81: true)
18+
->withPhpSets(php83: true)
1819
->withRules([
1920
ClassPropertyAssignToConstructorPromotionRector::class,
2021
RemoveUnusedVariableInCatchRector::class,
2122
])
2223
->withSkip([
2324
FlipTypeControlToUseExclusiveTypeRector::class,
25+
AddOverrideAttributeToOverriddenMethodsRector::class,
2426
]);

src/Dispatch/MethodDispatcher.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
* - execute handler
2626
* - validate output
2727
*/
28-
final class MethodDispatcher implements MethodDispatcherInterface
28+
final readonly class MethodDispatcher implements MethodDispatcherInterface
2929
{
3030
public function __construct(
31-
private readonly SchemaLoaderInterface $schemaLoader,
32-
private readonly MethodValidatorInterface $methodValidator,
33-
private readonly MethodProviderInterface $methodProvider,
34-
private readonly ?LoggerInterface $logger
31+
private SchemaLoaderInterface $schemaLoader,
32+
private MethodValidatorInterface $methodValidator,
33+
private MethodProviderInterface $methodProvider,
34+
private ?LoggerInterface $logger
3535
) {
3636
}
3737

src/Dispatch/MethodValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
/**
1616
* Validates input and output against the json schema to ensure valid requests/responses
1717
*/
18-
final class MethodValidator implements MethodValidatorInterface
18+
final readonly class MethodValidator implements MethodValidatorInterface
1919
{
2020
public function __construct(
21-
private readonly Validator $schemaValidator,
22-
private readonly ErrorFormatter $errorFormatter
21+
private Validator $schemaValidator,
22+
private ErrorFormatter $errorFormatter
2323
) {
2424
}
2525

src/Dispatch/RequestValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
/**
1818
* Validates the request against the basic request schema (method name, parameter)
1919
*/
20-
final class RequestValidator implements RequestValidatorInterface
20+
final readonly class RequestValidator implements RequestValidatorInterface
2121
{
2222
public function __construct(
23-
private readonly SchemaLoaderInterface $schemaLoader,
24-
private readonly Validator $schemaValidator,
23+
private SchemaLoaderInterface $schemaLoader,
24+
private Validator $schemaValidator,
2525
) {
2626
}
2727

src/Endpoint.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@
3232
/**
3333
* @see Endpoint::factory()
3434
*/
35-
final class Endpoint implements
35+
final readonly class Endpoint implements
3636
EndpointInterface
3737
{
3838
public function __construct(
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
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
4646
) {
4747
}
4848

0 commit comments

Comments
 (0)