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

remove the remaining dynamic property assignment #7022

Merged
merged 1 commit into from Nov 30, 2021
Merged

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Nov 29, 2021

The goal is to fix #7007

But reading the issue again, I'm not sure I got it right the first time.

@TysonAndre , can you confirm this is what you had in mind? I was confused by setAttribute('namespacedNameObject'), why Object?

(On an unrelated note, the reason why I didn't find those two for #6656 is because there is a @Property on PHP-Parser which messed with my detection)

@orklah orklah added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 29, 2021
Copy link
Contributor

@TysonAndre TysonAndre left a comment

Choose a reason for hiding this comment

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

That's what I had in mind.

I don't expect issues: Looking at this again, class PhpParser\Node\Stmt\Class_ extends Declaration and its subclasses are a distinct group of classes from PhpParser\Node\Name, so this won't conflict with the existing attribute of the same name used with PhpParser\Node\Name in SimpleNameResolver::resolveName.

I was confused by setAttribute('namespacedNameObject'), why Object?

At the time I hadn't looked into whether any use cases for the attribute of the same name would conflict, but it turns out they won't conflict

@orklah orklah merged commit 2c6ea7c into vimeo:master Nov 30, 2021
@orklah
Copy link
Collaborator Author

orklah commented Nov 30, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP 8.2 has PHP Error: Creation of dynamic property PhpParser\Node\Stmt\Class_::$namespacedName is deprecated
2 participants