@@ -562,19 +562,19 @@ public function testChildContextKeepsOriginalContextCacheKey()
562
562
];
563
563
564
564
$ normalizer = new class () extends AbstractObjectNormalizerDummy {
565
- public $ childContextCacheKey = null ;
565
+ public $ childContextCacheKey ;
566
566
567
- protected function extractAttributes (object $ object , string $ format = null , array $ context = []): array
567
+ protected function extractAttributes (object $ object , string $ format = null , array $ context = [])
568
568
{
569
569
return array_keys ((array ) $ object );
570
570
}
571
571
572
- protected function getAttributeValue (object $ object , string $ attribute , string $ format = null , array $ context = []): mixed
572
+ protected function getAttributeValue (object $ object , string $ attribute , string $ format = null , array $ context = [])
573
573
{
574
574
return $ object ->{$ attribute };
575
575
}
576
576
577
- protected function createChildContext (array $ parentContext , string $ attribute , ?string $ format ): array
577
+ protected function createChildContext (array $ parentContext , string $ attribute , ?string $ format )
578
578
{
579
579
$ childContext = parent ::createChildContext ($ parentContext , $ attribute , $ format );
580
580
$ this ->childContextCacheKey = $ childContext ['cache_key ' ];
@@ -606,19 +606,19 @@ public function testChildContextCacheKeyStaysFalseWhenOriginalCacheKeyIsFalse()
606
606
];
607
607
608
608
$ normalizer = new class () extends AbstractObjectNormalizerDummy {
609
- public $ childContextCacheKey = null ;
609
+ public $ childContextCacheKey ;
610
610
611
- protected function extractAttributes (object $ object , string $ format = null , array $ context = []): array
611
+ protected function extractAttributes (object $ object , string $ format = null , array $ context = [])
612
612
{
613
613
return array_keys ((array ) $ object );
614
614
}
615
615
616
- protected function getAttributeValue (object $ object , string $ attribute , string $ format = null , array $ context = []): mixed
616
+ protected function getAttributeValue (object $ object , string $ attribute , string $ format = null , array $ context = [])
617
617
{
618
618
return $ object ->{$ attribute };
619
619
}
620
620
621
- protected function createChildContext (array $ parentContext , string $ attribute , ?string $ format ): array
621
+ protected function createChildContext (array $ parentContext , string $ attribute , ?string $ format )
622
622
{
623
623
$ childContext = parent ::createChildContext ($ parentContext , $ attribute , $ format );
624
624
$ this ->childContextCacheKey = $ childContext ['cache_key ' ];
0 commit comments