Skip to content

Commit 121e67d

Browse files
Rework
1 parent b8edb9f commit 121e67d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Serializer/SerializerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Symfony\Component\Serializer;
1313

1414
use Symfony\Component\Serializer\Exception\ExceptionInterface;
15-
use Symfony\Component\Serializer\Exception\NotEncodableValueException;
1615
use Symfony\Component\Serializer\Exception\NotNormalizableValueException;
16+
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
1717

1818
/**
1919
* @author Jordi Boggiano <j.boggiano@seld.be>
@@ -25,8 +25,8 @@ interface SerializerInterface
2525
*
2626
* @param array<string, mixed> $context Options normalizers/encoders have access to
2727
*
28-
* @throws NotEncodableValueException Occurs when the format is not supported for serialization
2928
* @throws NotNormalizableValueException Occurs when a value cannot be normalized
29+
* @throws UnexpectedValueException Occurs when a value cannot be encoded
3030
* @throws ExceptionInterface Occurs for all the other cases of serialization-related errors
3131
*/
3232
public function serialize(mixed $data, string $format, array $context = []): string;
@@ -44,8 +44,8 @@ public function serialize(mixed $data, string $format, array $context = []): str
4444
*
4545
* @phpstan-return ($type is class-string<TObject> ? TObject : mixed)
4646
*
47-
* @throws NotEncodableValueException Occurs when the format is not supported for deserialization
4847
* @throws NotNormalizableValueException Occurs when a value cannot be denormalized
48+
* @throws UnexpectedValueException Occurs when a value cannot be decoded
4949
* @throws ExceptionInterface Occurs for all the other cases of serialization-related errors
5050
*/
5151
public function deserialize(mixed $data, string $type, string $format, array $context = []): mixed;

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