10000 CS · symfony/symfony@e61e0f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit e61e0f7

Browse files
committed
CS
1 parent 4af775b commit e61e0f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
5959
public function __construct(ClassMetadataFactoryInterface $classMetadataFactory = null, NameConverterInterface $nameConverter = null, PropertyTypeExtractorInterface $propertyTypeExtractor = null, ClassDiscriminatorResolverInterface $classDiscriminatorResolver = null, callable $objectClassResolver = null, array $defaultContext = array())
6060
{
6161
parent::__construct($classMetadataFactory, $nameConverter, $defaultContext);
62-
$this->defaultContext[self::EXCLUDE_FROM_CACHE_KEY] = [self::CIRCULAR_REFERENCE_LIMIT_COUNTERS];
62+
$this->defaultContext[self::EXCLUDE_FROM_CACHE_KEY] = array(self::CIRCULAR_REFERENCE_LIMIT_COUNTERS);
6363

6464
$this->propertyTypeExtractor = $propertyTypeExtractor;
6565

@@ -471,7 +471,7 @@ private function isMaxDepthReached(array $attributesMetadata, string $class, str
471471
*/
472472
private function getCacheKey(?string $format, array $context)
473473
{
474-
foreach($context[self::EXCLUDE_FROM_CACHE_KEY] ?? $this->defaultContext[self::EXCLUDE_FROM_CACHE_KEY] as $key) {
474+
foreach ($context[self::EXCLUDE_FROM_CACHE_KEY] ?? $this->defaultContext[self::EXCLUDE_FROM_CACHE_KEY] as $key) {
475475
unset($context[$key]);
476476
}
477477
unset($context[self::EXCLUDE_FROM_CACHE_KEY]);

0 commit comments

Comments
 (0)
0