Skip to content

Add zend_get_attribute_object() #14161

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 3 commits into from
May 14, 2024
Merged

Conversation

TimWolla
Copy link
Member

@TimWolla TimWolla commented May 7, 2024

This makes the implementation for ReflectionAttribute::newInstance() reusable.


This is related to #11293 where it will come in handy to reliably extract the parameters of the #[\Deprecated] attribute when named arguments are used.


Should the addition of zend_get_attribute_object() be mentioned in UPGRADING.INTERNALS?

This makes the implementation for `ReflectionAttribute::newInstance()`
reusable.
…ance()

This test ensures that the `filename` parameter for the fake stack frame is
functional. Without it, the stack trace would show `[internal function]` for
frame `#0`.
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

Minor nit

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

You can add an entry in UPGRADING.INTERNALS if you want, but I don't think we generally publicize new APIs in it 🤔

@TimWolla
Copy link
Member Author

but I don't think we generally publicize new APIs in it 🤔

Doesn't look like it and I'm not starting. Thanks for the review, merging.

@TimWolla TimWolla merged commit c90c4fe into php:master May 14, 2024
10 checks passed
@TimWolla TimWolla deleted the zend-get-attribute-object branch May 14, 2024 06:39
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.

2 participants