php / php/doc-en

Docs of ReflectionAttribute::IS_INSTANCEOF is useless

Open
#4,705 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Extension: reflection
Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

Affected page

https://www.php.net/manual/en/class.reflectionattribute.php#reflectionattribute.constants.is-instanceof

Issue description

Description of this constant says:

Retrieve attributes using an instanceof check.

But no clue how to use it. Also it would make more sense if it further specified that it would just do a lookup.

Steps to reproduce

Read.

Suggested fix

Make it clearer, potentially add an example.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ReflectionAttribute::IS_INSTANCEOF entry on the affected reflectionattribute.php page and compare its current description with the issue’s requested clarification. Done means the documentation explains the lookup behavior and includes an example if appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.