Skip to content

Clarify ReflectionAttribute::IS_INSTANCEOF description - #5969

Merged
lacatoire merged 1 commit into
php:masterfrom
qodelicious:reflectionattribute-is-instanceof-description
Oct 19, 2026
Merged

lacatoire merged 1 commit into
php:masterfrom
qodelicious:reflectionattribute-is-instanceof-description

Conversation

@qodelicious

Copy link
Copy Markdown
Contributor

Fixes #4705

The description of ReflectionAttribute::IS_INSTANCEOF only said "Retrieve attributes using an instanceof check". This explains that it is a flag for the flags argument of getAttributes() and that it makes the name argument match subclasses and implementers, not just the exact class.

@lacatoire
lacatoire requested a review from ndossche October 19, 2026 07:29
@lacatoire
lacatoire merged commit a330e2e into php:master Oct 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs of ReflectionAttribute::IS_INSTANCEOF is useless

3 participants