Skip to content

Remove $context argument from supportsNormalization in example #11613

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
May 28, 2019

Conversation

pskt
Copy link
Contributor

@pskt pskt commented May 27, 2019

This PR removes $context argument from supportsNormalization() method.

NormalizerInterface defines only $data and $format arguments (see https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php#L51)

Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

Good catch, thank you!

@OskarStark OskarStark added this to the 3.4 milestone May 28, 2019
@OskarStark
Copy link
Contributor

OskarStark commented May 28, 2019

Thanks for fixing this bug Paweł and congrats on your first Symfony Docs contribution.

@OskarStark OskarStark merged commit cd1fa25 into symfony:3.4 May 28, 2019
OskarStark added a commit that referenced this pull request May 28, 2019
…mple (pskt)

This PR was merged into the 3.4 branch.

Discussion
----------

Remove $context argument from supportsNormalization in example

This PR removes `$context` argument from supportsNormalization() method.

`NormalizerInterface` defines only `$data` and `$format` arguments (see https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Serializer/Normalizer/NormalizerInterface.php#L51)

Commits
-------

cd1fa25 Remove $context argument from example code
javiereguiluz added a commit that referenced this pull request Jul 19, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

add $context argument to supportsNormalization()

reverts #11613, the context will actually be passed as the third argument here (see https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Serializer/Serializer.php#L242)

Commits
-------

9a44b3f add $context argument to supportsNormalization()
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.

3 participants