Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic reflection support for type constants
Summary: I added ReflectionClass::getTypeConstantInfo that dumps out information about all the type constants in a class. Right now it is an array containing its name, whether or not its abstract, and what type it aliases (null if it is abstract). I also filter out type constants from the reflection methods for constants such as ReflectionClass::getConstants(), ReflectionClass::getAbstractConstantNames(), get_class_constants(), etc. Reviewed By: @elgenie Differential Revision: D1914280
- Loading branch information
Showing
10 changed files
with
424 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.