Skip to content

Commit

Permalink
Add missing #[Override]
Browse files Browse the repository at this point in the history
  • Loading branch information
jerowork committed Oct 7, 2024
1 parent 78613a2 commit 4f31151
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SymfonySerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
use Gember\EventSourcing\Util\Serialization\Serializer\Serializer;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\SerializerInterface;
use Override;

final readonly class SymfonySerializer implements Serializer
{
public function __construct(
private SerializerInterface $serializer,
) {}

#[Override]
public function serialize(object $object): string
{
return $this->serializer->serialize($object, JsonEncoder::FORMAT);
}

#[Override]
public function deserialize(string $payload, string $className): object
{
/** @var object */
Expand Down

0 comments on commit 4f31151

Please sign in to comment.