Skip to content

Commit

Permalink
[Serializer] Remove DecoderInterface type hint for API Platform compa…
Browse files Browse the repository at this point in the history
…tibility
  • Loading branch information
PierreRebeilleau authored and nicolas-grekas committed Dec 1, 2021
1 parent 657ea71 commit 6063743
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Encoder/DecoderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ interface DecoderInterface
* are encouraged to document which formats they support in a non-inherited
* phpdoc comment.
*
* @return mixed
*
* @throws UnexpectedValueException
*/
public function decode(string $data, string $format, array $context = []): mixed;
public function decode(string $data, string $format, array $context = []);

/**
* Checks whether the deserializer can decode from given format.
*
* @param string $format Format name
*
* @return bool
*/
public function supportsDecoding(string $format): bool;
public function supportsDecoding(string $format);
}

0 comments on commit 6063743

Please sign in to comment.