Skip to content

Commit

Permalink
Merge pull request #15 from answear/update-to-symfony-6-4
Browse files Browse the repository at this point in the history
Update to symfony 6.4
  • Loading branch information
Wiktor6 authored Jun 7, 2024
2 parents cb7a03c + 1a96853 commit 0afa526
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'strict_param' => false,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'phpdoc_align' => [],
'phpdoc_align' => ['align' => 'left'],
'phpdoc_summary' => false,
'void_return' => false,
'phpdoc_var_without_name' => false,
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"guzzlehttp/guzzle": "^6.0 || ^7.0",
"marc-mabe/php-enum": "^3.0|^4.3",
"psr/log": "^1.0",
"symfony/http-kernel": "5.4 - 6.2",
"symfony/property-access": "5.4 - 6.2",
"symfony/property-info": "5.4 - 6.2",
"symfony/serializer": "5.4 - 6.2",
"symfony/http-kernel": "5.4 - 6.4",
"symfony/property-access": "5.4 - 6.4",
"symfony/property-info": "5.4 - 6.4",
"symfony/serializer": "5.4 - 6.4",
"webmozart/assert": "^1.3"
},
"require-dev": {
Expand All @@ -23,7 +23,7 @@
"phpstan/phpstan-webmozart-assert": "^1.0",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-master",
"symfony/phpunit-bridge": "6.1.*"
"symfony/phpunit-bridge": "6.4.*"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Response/DTO/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Error implements DenormalizableInterface
public array $validations = [];
public int $code;

public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = [])
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = []): void
{
$this->validations = empty($data['Validations'])
? []
Expand Down
2 changes: 1 addition & 1 deletion src/Response/ParcelShopsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function denormalize(
$data,
$format = null,
array $context = []
) {
): void {
$this->data = empty($data['data'])
? []
: $denormalizer->denormalize(
Expand Down
2 changes: 1 addition & 1 deletion src/Response/PlacesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function denormalize(
$data,
$format = null,
array $context = []
) {
): void {
$this->data = empty($data['data'])
? []
: $denormalizer->denormalize(
Expand Down
7 changes: 7 additions & 0 deletions src/Serializer/Normalizer/EnumNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,11 @@ public function hasCacheableSupportsMethod(): bool
{
return __CLASS__ === static::class;
}

public function getSupportedTypes(?string $format): array
{
return [
Enum::class => true,
];
}
}

0 comments on commit 0afa526

Please sign in to comment.