Skip to content

Commit

Permalink
[Serializer] Fix wrong needsNormalization in TraceableEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jul 28, 2022
1 parent f030259 commit 2c59be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Debug/TraceableEncoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
use Symfony\Component\Serializer\DataCollector\SerializerDataCollector;
use Symfony\Component\Serializer\Encoder\DecoderInterface;
use Symfony\Component\Serializer\Encoder\EncoderInterface;
use Symfony\Component\Serializer\Encoder\NormalizationAwareInterface;
use Symfony\Component\Serializer\SerializerAwareInterface;
use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Component\Serializer\Tests\Encoder\NormalizationAwareEncoder;

/**
* Collects some data about encoding.
Expand Down Expand Up @@ -111,7 +111,7 @@ public function setSerializer(SerializerInterface $serializer)

public function needsNormalization(): bool
{
return !$this->encoder instanceof NormalizationAwareEncoder;
return !$this->encoder instanceof NormalizationAwareInterface;
}

/**
Expand Down

0 comments on commit 2c59be3

Please sign in to comment.