Skip to content

Commit ff6bd03

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Improve CircularReferenceException message
2 parents c6ccf71 + 30d2ca1 commit ff6bd03

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
@@ -228,7 +228,7 @@ protected function handleCircularReference($object)
228228
return call_user_func($this->circularReferenceHandler, $object);
229229
}
230230

231-
throw new CircularReferenceException(sprintf('A circular reference has been detected (configured limit: %d).', $this->circularReferenceLimit));
231+
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));
232232
}
233233

234234
/**

0 commit comments

Comments
 (0)