Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[PropertyInfo]  use the right context for properties defined in traits #40175

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
Feb 16, 2021

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 13, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #28732, #34191
License MIT
Doc PR

@xabbuh xabbuh added this to the 4.4 milestone Feb 13, 2021
@xabbuh xabbuh requested a review from dunglas as a code owner February 13, 2021 13:28
@carsonbot carsonbot changed the title [PropertyInfo] use the right context for properties defined in traits [PropertyInfo]  use the right context for properties defined in traits Feb 13, 2021
@carsonbot
Copy link

Hey!

I see that more good work is coming your way.

I think @bastnic has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@fabpot
Copy link
Member

fabpot commented Feb 16, 2021

Thank you @xabbuh.

@fabpot fabpot merged commit 1b358fe into symfony:4.4 Feb 16, 2021
@xabbuh xabbuh deleted the issue-28732 branch February 16, 2021 07:38
This was referenced Mar 4, 2021
nicolas-grekas added a commit that referenced this pull request Apr 14, 2021
…n traits (colinodell)

This PR was merged into the 4.4 branch.

Discussion
----------

[PropertyInfo] Use the right context for methods defined in traits

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34191
| License       | MIT
| Doc PR        |

Pull request #40175 only partially fixed #34191 - it solved the problem for properties used in traits but it did not address the same issue with methods.

I have therefore applied the same style of fix and confirmed it works properly with tests.

Commits
-------

c7e9493 [PropertyInfo] Use the right context for methods defined in traits
nicolas-grekas added a commit that referenced this pull request May 7, 2021
…ts (soullivaneuh)

This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[PropertyInfo] fix attribute namespace with recursive traits

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | Fix #36997 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

The targeted issue is closed because considered as solved by #40175.

However, the fix is not enough and is not working with recursive trait inclusion. (see #36997 (comment)).

This pull request is completing the first fix of `@xabbuh`, trying to follow the same coding style. 😉

Commits
-------

bbadfb3 [PropertyInfo] fix attribute namespace with recursive traits
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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.