Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 980c2bc

Browse filesBrowse files
committed
code style
1 parent ebf6254 commit 980c2bc
Copy full SHA for 980c2bc

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php
+4-4Lines changed: 4 additions & 4 deletions
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.