Improve CircularReferenceException message
This commit is contained in:
parent
77d06b5d39
commit
3a529e3391
@ -228,7 +228,7 @@ abstract class AbstractNormalizer extends SerializerAwareNormalizer implements N
|
|||||||
return call_user_func($this->circularReferenceHandler, $object);
|
return call_user_func($this->circularReferenceHandler, $object);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new CircularReferenceException(sprintf('A circular reference has been detected (configured limit: %d).', $this->circularReferenceLimit));
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user