Skip to content

Commit f3358aa

Browse files
arjanfransDominicLuidold
authored andcommitted
misc: Fix codestyle errors + require php >=8.2 for all extensions
1 parent 3dc8742 commit f3358aa

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

Diff for: composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fusonic/http-kernel-bundle",
33
"description": "Symfony bundle with extensions for Symfony's HttpKernel",
4-
"version": "1.3.3",
4+
"version": "1.4.0",
55
"type": "library",
66
"license": "MIT",
77
"authors": [
@@ -22,7 +22,7 @@
2222
}
2323
},
2424
"require": {
25-
"php": "^8.2",
25+
"php": ">=8.2",
2626
"phpdocumentor/reflection-docblock": "^5.3",
2727
"symfony/config": "^6.3 || ^7.0",
2828
"symfony/dependency-injection": "^6.3 || ^7.0",

Diff for: phpstan.neon

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ parameters:
99
return: 100
1010
param: 100
1111
property: 100
12+
constant: 0 # FIXME change to 100 once everything requires at least PHP 8.3
1213

1314
includes:
1415
- vendor/phpstan/phpstan-deprecation-rules/rules.neon

Diff for: src/Exception/ConstraintViolationException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(private readonly ConstraintViolationListInterface $c
3232
$messages[] = $constraintViolation->getMessage();
3333
}
3434

35-
parent::__construct(sprintf('%s: %s', self::NAME, implode('; ', $messages)));
35+
parent::__construct(\sprintf('%s: %s', self::NAME, implode('; ', $messages)));
3636
}
3737

3838
public function getConstraintViolationList(): ConstraintViolationListInterface

Diff for: src/Exception/InvalidEnumException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ public function __construct(
1919
public readonly mixed $data,
2020
public readonly ?string $propertyPath
2121
) {
22-
parent::__construct(sprintf('Invalid enum value for %s: %s', $enumClass, $data));
22+
parent::__construct(\sprintf('Invalid enum value for %s: %s', $enumClass, $data));
2323
}
2424
}

Diff for: src/Request/StrictRequestDataCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function getRouteParams(Request $request): array
8080
protected function mergeRequestData(array $data, array $routeParameters): array
8181
{
8282
if (\count($keys = array_intersect_key($data, $routeParameters)) > 0) {
83-
throw new BadRequestHttpException(sprintf('Parameters (%s) used as route attributes can not be used in the request body or query parameters.', implode(', ', array_keys($keys))));
83+
throw new BadRequestHttpException(\sprintf('Parameters (%s) used as route attributes can not be used in the request body or query parameters.', implode(', ', array_keys($keys))));
8484
}
8585

8686
return array_merge($data, $routeParameters);

0 commit comments

Comments
 (0)