Skip to content
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

property normalizer should also pass format and context to isAllowedAttribute #31071

Merged

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Apr 11, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets found while working on #30888
License MIT
Doc PR -

the context and format are optional parameters to isAllowedAttribute, but should be forwarded. due to this omission, the PropertyNormalizer was ignoring the 'attributes' context option (and does in version 4 also ignore the 'ignore_attributes' context option - that one is a property on the normalizer class in version 3 and therefore not ignored here)

@Simperfit
Copy link
Contributor

CI Failure is not related.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Apr 11, 2019
@nicolas-grekas
Copy link
Member

Thank you @dbu.

@nicolas-grekas nicolas-grekas merged commit 13e2fb7 into symfony:3.4 Apr 11, 2019
nicolas-grekas added a commit that referenced this pull request Apr 11, 2019
… isAllowedAttribute (dbu)

This PR was merged into the 3.4 branch.

Discussion
----------

property normalizer should also pass format and context to isAllowedAttribute

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | found while working on #30888
| License       | MIT
| Doc PR        | -

the context and format are optional parameters to `isAllowedAttribute`, but should be forwarded. due to this omission, the PropertyNormalizer was ignoring the 'attributes' context option (and does in version 4 also ignore the 'ignore_attributes' context option - that one is a property on the normalizer class in version 3 and therefore not ignored here)

Commits
-------

13e2fb7 property normalizer should also pass format and context to isAllowedAttribute
This was referenced Apr 16, 2019
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.

None yet

4 participants