Skip to content

Commit

Permalink
symfony#39102: thank you fabbot.
Browse files Browse the repository at this point in the history
  • Loading branch information
Basster committed Dec 5, 2020
1 parent 6a9df77 commit b2e2c86
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
Expand Up @@ -67,7 +67,7 @@ private function decorateNormalizer(string $id, ContainerBuilder $container): vo
$decoratorClass = TraceableDenormalizer::class;
} else {
throw new RuntimeException(
sprintf("Normalizer with id %s neither implements NormalizerInterface nor DenormalizerInterface!", $id)
sprintf('Normalizer with id %s neither implements NormalizerInterface nor DenormalizerInterface!', $id)
);
}

Expand Down
@@ -1,6 +1,13 @@
<?php

declare(strict_types=1);
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Symfony\Component\Serializer\DataCollector;

Expand Down
Expand Up @@ -30,6 +30,7 @@ abstract class AbstractTraceableNormalizer implements SerializerAwareInterface,

/**
* AbstractTraceableNormalizer constructor.
*
* @param DenormalizerInterface|NormalizerInterface $delegate
*/
public function __construct($delegate)
Expand Down Expand Up @@ -95,17 +96,11 @@ public function setNormalizer(NormalizerInterface $normalizer): void
}
}

/**
* @return array
*/
public function getNormalizations(): array
{
return $this->normalizations;
}

/**
* @return array
*/
public function getDenormalizations(): array
{
return $this->denormalizations;
Expand Down
Expand Up @@ -15,7 +15,7 @@
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;

/**
* Class Denormalization
* Class Denormalization.
*/
final class Denormalization extends Deserialization
{
Expand Down
Expand Up @@ -15,7 +15,7 @@
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

/**
* Class Normalization
* Class Normalization.
*/
final class Normalization extends Serialization
{
Expand Down
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\Serializer\SerializerInterface;

/**
* Class TraceableSerializerTest
* Class TraceableSerializerTest.
*/
final class TraceableSerializerTest extends TestCase
{
Expand Down Expand Up @@ -66,7 +66,6 @@ public function testSerializeMustCallDelegate(): void

public function testTracerAddsSerializationToSerializationsStack(): void
{

$this->assertSerializeToBeCalled();

$this->callSerialize();
Expand Down Expand Up @@ -118,7 +117,7 @@ public function testCollectedDeserializationContainsResultOfDescerialization():
self::assertSame($this->something, $deserializations[0]->result);
}

public function testResetClearsSerializationsAndDeserializationsStacks():void
public function testResetClearsSerializationsAndDeserializationsStacks(): void
{
$this->assertSerializeToBeCalled();
$this->assertDeserializeToBeCalled();
Expand Down

0 comments on commit b2e2c86

Please sign in to comment.