Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PropertyAccess] Fix accessing public property on Object #44419

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 11, 2021

Conversation

kevcomparadise
Copy link
Contributor

@kevcomparadise kevcomparadise commented Dec 2, 2021

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #37026, fix #37615
License MIT
Doc PR no

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.1 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@kevcomparadise kevcomparadise changed the title [PropertyAccess] Fix accessing public property in Object [PropertyAccess] Fix accessing public property on Object Dec 2, 2021
@carsonbot
Copy link

Hey!

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

Cheers!

Carsonbot

@xabbuh
Copy link
Member

xabbuh commented Dec 3, 2021

Can you please add a test case for what Fabien described in #37622 (comment) to make sure that we do not break those use cases?

@xabbuh xabbuh modified the milestones: 5.4, 5.3 Dec 3, 2021
@xabbuh
Copy link
Member

xabbuh commented Dec 3, 2021

Will this also fix #37615?

@kevcomparadise
Copy link
Contributor Author

kevcomparadise commented Dec 3, 2021

Will this also fix #37615?

@xabbuh Yes it will also fix, i wrote test for that

@kevcomparadise
Copy link
Contributor Author

kevcomparadise commented Dec 3, 2021

Can you please add a test case for what Fabien described in #37622 (comment) to make sure that we do not break those use cases?

@xabbuh For that maybe I'm wrong but testGetValueIgnoresMagicGet covers this case no ?

@xabbuh
Copy link
Member

xabbuh commented Dec 3, 2021

Not sure, if I don't miss anything, that test was already present at the time #37622 was merged.

@kevcomparadise
Copy link
Contributor Author

Not sure, if I don't miss anything, that test was already present at the time #37622 was merged.

@xabbuh Ok, i also wrote test for that

@kevcomparadise
Copy link
Contributor Author

Hi, Did you have time to watch ? @xabbuh thx :)

nicolas-grekas added a commit that referenced this pull request Dec 11, 2021
…operties (kevcomparadise)

This PR was merged into the 4.4 branch.

Discussion
----------

[PropertyAccess] Add tests accessing public (dynamic) properties

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

Backporting tests from #44419

Commits
-------

29eec31 [PropertyAccess] Add tests accessing public (dynamic) properties
@nicolas-grekas
Copy link
Member

Thank you @kevcomparadise.

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