Skip to content

[Live] Adding 2 errors related to an invalid component set up #590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

weaverryan
Copy link
Member

Q A
Bug fix? no
New feature? yes
Tickets None
License MIT
  1. A better error if you have an uninitiailzed property, though there are still other cases of uninitialized properties that aren't handled yet.

  2. A better error if there is a problem hydrating an object through the serializer.

Btw, I'm still not convinced we should use the serializer automatically to (de)hydrate properties. But anyways, even if we decide to NOT do this by default, it would still be something the user could easily enable... and so having a nice message is important.

}

throw new \LogicException($message, 0, $exception);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An example of this:

Screen Shot 2022-12-02 at 3 42 06 PM

I wish I could add line breaks, but at least all the info is there.

1) A better error if you have an uninitiailzed property, though there are still
other cases of uninitialized properties that aren't handled yet.

2) A better error if there is a problem hydrating an object through the serializer.
@weaverryan weaverryan force-pushed the serializer-exception-messages branch from 9d75871 to 38833d1 Compare December 2, 2022 20:42
@weaverryan weaverryan merged commit 4bd27ef into symfony:2.x Dec 5, 2022
@weaverryan weaverryan deleted the serializer-exception-messages branch January 19, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant