8000 Merge branch '2.8' into 3.2 · symfony/symfony@04baf86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 04baf86

Browse files
committed
Merge branch '2.8' into 3.2
* 2.8: Improve CircularReferenceException message
2 parents d01e2d1 + 26c5fc0 commit 04baf86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ protected function handleCircularReference($object)
191191
return call_user_func($this->circularReferenceHandler, $object);
192192
}
193193

194-
throw new CircularReferenceException(sprintf('A circular reference has been detected (configured limit: %d).', $this->circularReferenceLimit));
194+
throw new CircularReferenceException(sprintf('A circular reference has been detected when serializing the object of class "%s" (configured limit: %d)', get_class($object), $this->circularReferenceLimit));
195195
}
196196

197197
/**

0 commit comments

Comments
 (0)
0