Skip to content

[Serializer] Docblock about throwing exceptions on serializer #29889

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
Jan 25, 2019

Conversation

gmponos
Copy link
Contributor

@gmponos gmponos commented Jan 14, 2019

Q A
Branch? 3.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

Most of the serializers can throw a \Symfony\Component\Serializer\ExceptionInterface. This makes the docblock in line with that.

Similar to this #29832

@gmponos
Copy link
Contributor Author

gmponos commented Jan 14, 2019

Also I believe that doblocks must be added to Serializer class as well.

@gmponos gmponos changed the title [Serializer] Throw exception serializer [Serializer] Docblock about throwing exceptions on serializer Jan 14, 2019
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Jan 24, 2019
@dunglas dunglas force-pushed the throw_exception_serializer branch from 5178fcc to 0b44ad7 Compare January 25, 2019 09:02
@dunglas
Copy link
Member

dunglas commented Jan 25, 2019

Thanks @gmponos.

@dunglas dunglas merged commit 0b44ad7 into symfony:3.4 Jan 25, 2019
dunglas added a commit that referenced this pull request Jan 25, 2019
…lizer (gmponos)

This PR was squashed before being merged into the 3.4 branch (closes #29889).

Discussion
----------

[Serializer] Docblock about throwing exceptions on serializer

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

Most of the serializers can throw a `\Symfony\Component\Serializer\ExceptionInterface`. This makes the docblock in line with that.

Similar to this #29832

Commits
-------

0b44ad7 [Serializer] Docblock about throwing exceptions on serializer
@gmponos gmponos deleted the throw_exception_serializer branch January 25, 2019 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants