@@ -562,7 +562,7 @@ public function testProvidingContextCacheKeyGeneratesSameChildContextCacheKey()
562
562
];
563
563
564
564
$ normalizer = new class () extends AbstractObjectNormalizerDummy {
565
- public $ childContextCacheKey = null ;
565
+ public $ childContextCacheKey ;
566
566
567
567
protected function extractAttributes (object $ object , string $ format = null , array $ context = []): array
568
568
{
@@ -607,7 +607,7 @@ public function testChildContextKeepsOriginalContextCacheKey()
607
607
];
608
608
609
609
$ normalizer = new class () extends AbstractObjectNormalizerDummy {
610
- public $ childContextCacheKey = null ;
610
+ public $ childContextCacheKey ;
611
611
612
612
protected function extractAttributes (object $ object , string $ format = null , array $ context = []): array
613
613
{
@@ -647,7 +647,7 @@ public function testChildContextCacheKeyStaysFalseWhenOriginalCacheKeyIsFalse()
647
647
];
648
648
649
649
$ normalizer = new class () extends AbstractObjectNormalizerDummy {
650
- public $ childContextCacheKey = null ;
650
+ public $ childContextCacheKey ;
651
651
652
652
protected function extractAttributes (object $ object , string $ format = null , array $ context = []): array
653
653
{
@@ -671,7 +671,7 @@ protected function createChildContext(array $parentContext, string $attribute, ?
671
671
$ serializer = new Serializer ([$ normalizer ]);
672
672
$ serializer ->normalize ($ foobar , null , ['cache_key ' => false ]);
673
673
674
- $ this ->assertSame ( false , $ normalizer ->childContextCacheKey );
674
+ $ this ->assertFalse ( $ normalizer ->childContextCacheKey );
675
675
}
676
676
}
677
677
0 commit comments