mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
bug #11981 Adjust services to symfony/serializer:^4.4 (Zales0123)
This PR was merged into the 1.8 branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | 1.8
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
It's required for our ApiPlatform denormalizer implementations. With `symfony/serializer` in version **4.4**, the following error occurs:
<img width="572" alt="Zrzut ekranu 2020-10-30 o 16 47 20" src="https://user-images.githubusercontent.com/6212718/97726834-f2439580-1acf-11eb-9275-f716bcb28ad4.png">
Commits
-------
d53f6fbb40 Adjust services to symfony/serializer:4.4
This commit is contained in:
commit
0b67fa2fa2
4 changed files with 8 additions and 7 deletions
|
|
@ -28,8 +28,8 @@
|
|||
"doctrine/collections": "^1.6",
|
||||
"doctrine/doctrine-bundle": "^1.12",
|
||||
"doctrine/doctrine-cache-bundle": "^1.4",
|
||||
"doctrine/migrations": "^3.0",
|
||||
"doctrine/doctrine-migrations-bundle": "^3.0",
|
||||
"doctrine/migrations": "^3.0",
|
||||
"doctrine/orm": "^2.7",
|
||||
"egulias/email-validator": "^2.1",
|
||||
"friendsofsymfony/oauth-server-bundle": "^1.6",
|
||||
|
|
@ -94,6 +94,7 @@
|
|||
"symfony/security-csrf": "^4.4",
|
||||
"symfony/security-guard": "^4.4",
|
||||
"symfony/security-http": "^4.4",
|
||||
"symfony/serializer": "^4.4",
|
||||
"symfony/swiftmailer-bundle": "^3.4",
|
||||
"symfony/templating": "^4.4",
|
||||
"symfony/thanks": "^1.2",
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ final class AddressDenormalizer implements ContextAwareDenormalizerInterface
|
|||
$this->interfaceType = $interfaceType;
|
||||
}
|
||||
|
||||
public function denormalize($data, string $type, string $format = null, array $context = [])
|
||||
public function denormalize($data, $type, $format = null, array $context = [])
|
||||
{
|
||||
return $this->objectNormalizer->denormalize(
|
||||
$data,
|
||||
|
|
@ -48,7 +48,7 @@ final class AddressDenormalizer implements ContextAwareDenormalizerInterface
|
|||
);
|
||||
}
|
||||
|
||||
public function supportsDenormalization($data, string $type, string $format = null, array $context = [])
|
||||
public function supportsDenormalization($data, $type, $format = null, array $context = []): bool
|
||||
{
|
||||
return $type === $this->interfaceType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,12 +31,12 @@ final class AdminAuthenticationTokenDocumentationNormalizer implements Normalize
|
|||
$this->apiRoute = $apiRoute;
|
||||
}
|
||||
|
||||
public function supportsNormalization($data, string $format = null): bool
|
||||
public function supportsNormalization($data, $format = null): bool
|
||||
{
|
||||
return $this->decoratedNormalizer->supportsNormalization($data, $format);
|
||||
}
|
||||
|
||||
public function normalize($object, string $format = null, array $context = [])
|
||||
public function normalize($object, $format = null, array $context = [])
|
||||
{
|
||||
$docs = $this->decoratedNormalizer->normalize($object, $format, $context);
|
||||
|
||||
|
|
|
|||
|
|
@ -31,12 +31,12 @@ final class ShopAuthenticationTokenDocumentationNormalizer implements Normalizer
|
|||
$this->apiRoute = $apiRoute;
|
||||
}
|
||||
|
||||
public function supportsNormalization($data, string $format = null): bool
|
||||
public function supportsNormalization($data, $format = null): bool
|
||||
{
|
||||
return $this->decoratedNormalizer->supportsNormalization($data, $format);
|
||||
}
|
||||
|
||||
public function normalize($object, string $format = null, array $context = [])
|
||||
public function normalize($object, $format = null, array $context = [])
|
||||
{
|
||||
$docs = $this->decoratedNormalizer->normalize($object, $format, $context);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue