Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
dgafka committed Dec 26, 2023
1 parent 2763659 commit 6f29e42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use JMS\Serializer\Metadata\ClassMetadata;
use JMS\Serializer\Metadata\PropertyMetadata;
use JMS\Serializer\Naming\PropertyNamingStrategyInterface;
use Metadata\MetadataFactory;
use Metadata\MetadataFactoryInterface;

abstract class Context
Expand Down
4 changes: 2 additions & 2 deletions tests/SerializerBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ public function testUsingSerializedNameStrategyInContext()
self::assertEquals($jsonWithUnderscores, $serializer->serialize(
$object,
'json',
SerializationContext::create()->setPropertyNamingStrategy(new SerializedNameAnnotationStrategy(new IdenticalPropertyNamingStrategy()))
SerializationContext::create()->setPropertyNamingStrategy(new SerializedNameAnnotationStrategy(new IdenticalPropertyNamingStrategy())),
));
self::assertEquals($object, $serializer->deserialize(
$jsonWithUnderscores,
get_class($object),
'json',
DeserializationContext::create()->setPropertyNamingStrategy(new SerializedNameAnnotationStrategy(new IdenticalPropertyNamingStrategy()))
DeserializationContext::create()->setPropertyNamingStrategy(new SerializedNameAnnotationStrategy(new IdenticalPropertyNamingStrategy())),
));
}

Expand Down

0 comments on commit 6f29e42

Please sign in to comment.