php-src/ext/reflection
Daniel Scherzer 4233394e8f ReflectionClass: show enums differently from classes
While internally enums are mostly the same as classes, their output in
`ReflectionClass::__toString()` should show the enum as the developer wrote it,
rather than as the engine stored it. Accordingly

- Say that the enum is an enum, not a final class

- Include the backing type, if any, in the declaration line

- List enum cases separately from constants, and show the underlying values, if
any

GH-15766
2025-03-26 13:45:25 -07:00
..
tests ReflectionClass: show enums differently from classes 2025-03-26 13:45:25 -07:00
config.m4 Autotools: Normalize and quote all PHP_NEW_EXTENSION arguments (#15144) 2024-07-29 00:14:59 +02:00
config.w32 Remove HAVE_* for always available extensions 2019-04-14 11:44:12 -03:00
CREDITS
php_reflection.c ReflectionClass: show enums differently from classes 2025-03-26 13:45:25 -07:00
php_reflection.h Lazy objects 2024-08-30 17:30:03 +02:00
php_reflection.stub.php Merge branch 'PHP-8.4' 2024-11-12 18:52:16 +01:00
php_reflection_arginfo.h Merge branch 'PHP-8.4' 2024-11-12 18:52:16 +01:00