php / php/php-src

ext/reflection: Add `getFqn()` method to `ReflectionClass`, `ReflectionConstant`, `ReflectionFunctionAbstract`, and `ReflectionAttribute`

Aperta
#19,558 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@DanielEScherzer ci sta già lavorando.

Dal 23/8/2025.

Extension: reflection Feature
Lingua principale
C
Stelle
40.4k
Fork
8.1k
Merge medio
2g 13h
PR unite (30g)
96

Descrizione

Description

The getName() method on those classes returns a qualified name rather than the fully qualified name.

There are various instances where just a qualified name is not sufficient (e.g. documentation or code gen), and while it is very easy to get the FQN by just prepending \ to the name from getName() this is something that needs to be known to be safe to do.

This maybe also should be added to ReflectionClassConstant as methods would also have this new method automatically due to ReflectionMethod inheriting from ReflectionFunctionAbstract.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.