ext/reflection: Add `getFqn()` method to `ReflectionClass`, `ReflectionConstant`, `ReflectionFunctionAbstract`, and `ReflectionAttribute`
Offen
@DanielEScherzer arbeitet bereits daran.
Seit 23.8.2025.
Extension: reflection
Feature
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.1k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.