8000 code style · symfony/symfony@980c2bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 980c2bc

Browse files
committed
code style
1 parent ebf6254 commit 980c2bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public function testProvidingContextCacheKeyGeneratesSameChildContextCacheKey()
562562
];
563563

564564
$normalizer = new class() extends AbstractObjectNormalizerDummy {
565-
public $childContextCacheKey = null;
565+
public $childContextCacheKey;
566566

567567
protected function extractAttributes(object $object, string $format = null, array $context = []): array
568568
{
@@ -607,7 +607,7 @@ public function testChildContextKeepsOriginalContextCacheKey()
607607
];
608608

609609
$normalizer = new class() extends AbstractObjectNormalizerDummy {
610-
public $childContextCacheKey = null;
610+
public $childContextCacheKey;
611611

612612
protected function extractAttributes(object $object, string $format = null, array $context = []): array
613613
{
@@ -647,7 +647,7 @@ public function testChildContextCacheKeyStaysFalseWhenOriginalCacheKeyIsFalse()
647647
];
648648

649649
$normalizer = new class() extends AbstractObjectNormalizerDummy {
650-
public $childContextCacheKey = null;
650+
public $childContextCacheKey;
651651

652652
protected function extractAttributes(object $object, string $format = null, array $context = []): array
653653
{
@@ -671,7 +671,7 @@ protected function createChildContext(array $parentContext, string $attribute, ?
671671
$serializer = new Serializer([$normalizer]);
672672
$serializer->normalize($foobar, null, ['cache_key' => false]);
673673

674-
$this->assertSame(false, $normalizer->childContextCacheKey);
674+
$this->assertFalse($normalizer->childContextCacheKey);
675675
}
676676
}
677677

0 commit comments

Comments
 (0)
0