Skip to content

Commit f88f44a

Browse files
committed
[ErrorHandler] Do not use ContextAwareNormalizerInterface anymore
1 parent a6e5b75 commit f88f44a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Messenger/Transport/Serialization/Normalizer/FlattenExceptionNormalizer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
use Symfony\Component\ErrorHandler\Exception\FlattenException;
1515
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
1616
use Symfony\Component\Serializer\Exception\InvalidArgumentException;
17-
use Symfony\Component\Serializer\Normalizer\ContextAwareNormalizerInterface;
1817
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
1918
use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait;
19+
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
2020

2121
/**
2222
* This normalizer is only used in Debug/Dev/Messenger contexts.
2323
*
2424
* @author Pascal Luna <skalpa@zetareticuli.org>
2525
*/
26-
final class FlattenExceptionNormalizer implements DenormalizerInterface, ContextAwareNormalizerInterface
26+
final class FlattenExceptionNormalizer implements DenormalizerInterface, NormalizerInterface
2727
{
2828
use NormalizerAwareTrait;
2929

@@ -65,7 +65,6 @@ public function supportsNormalization($data, string $format = null, array $conte
6565
public function denormalize($data, string $type, string $format = null, array $context = []): FlattenException
6666
{
6767
$object = new FlattenException();
68-
6968
$object->setMessage($data['message']);
7069
$object->setCode($data['code']);
7170
$object->setStatusCode($data['status'] ?? 500);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy