Skip to content

Commit 993a79c

Browse files
committed
Merge branch '2.8' into 3.2
* 2.8: Improve CircularReferenceException message
2 parents 6eeae1b + ff6bd03 commit 993a79c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)