Skip to content

Commit 30d2ca1

Browse files
committed
Improve CircularReferenceException message
1 parent 08e4637 commit 30d2ca1

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)