Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ad7f5b

Browse files
committed
Review
1 parent 3226bda commit 9ad7f5b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ abstract class AbstractObjectNormalizer extends AbstractNormalizer
3737
const ALLOW_EXTRA_ATTRIBUTES = 'allow_extra_attributes';
3838
const DISABLE_TYPE_ENFORCEMENT = 'disable_type_enforcement';
3939

40-
/**
41-
* @var callable
42-
*/
43-
protected $maxDepthHandler;
44-
4540
private $propertyTypeExtractor;
4641
private $attributesCache = array();
4742
private $cache = array();
4843

44+
/**
45+
* @var callable
46+
*/
47+
private $maxDepthHandler;
48+
4949
/**
5050
* @var ClassDiscriminatorResolverInterface|null
5151
*/
@@ -98,7 +98,7 @@ public function normalize($object, $format = null, array $context = array())
9898

9999
$attributeValue = $this->getAttributeValue($object, $attribute, $format, $context);
100100
if ($maxDepthReached) {
101-
$attributeValue = call_user_func($this->maxDepthHandler, $attributeValue);
101+
$attributeValue = \call_user_func($this->maxDepthHandler, $attributeValue);
102102
}
103103

104104
if (isset($this->callbacks[$attribute])) {

0 commit comments

Comments
 (0)