Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #23322 [Serializer] Improve CircularReference detection message…
… (ScullWM) This PR was merged into the 2.7 branch. Discussion ---------- [Serializer] Improve CircularReference detection message | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT Hi, I've get a CircularReferenceException error while serializing object with nested levels. Detect a CircularReference is great, but having more information about the object that generate this exception is better. I simply suggest to add a `get_class` of the current object in the error message. Before: `A circular reference has been detected (configured limit: 1).` After (edit) `A circular reference has been detected when serializing the object of class "App\Domain\User" (configured limit: 1).` Commits ------- 3a529e3 Improve CircularReferenceException message
- Loading branch information