Skip to content

GH-22684: Make Reflection(Class)Constant::__toString() print booleans as booleans - #23548

Open
DanielEScherzer wants to merge 3 commits into
php:masterfrom
DanielEScherzer:reflection-print-booleans
Open

GH-22684: Make Reflection(Class)Constant::__toString() print booleans as booleans#23548
DanielEScherzer wants to merge 3 commits into
php:masterfrom
DanielEScherzer:reflection-print-booleans

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

Fixes #22684

Add regression tests for the output of `ReflectionClassConstant::__toString()`
and `ReflectionConstant::__toString()` when the value of the constant is
boolean `true` or `false`. The `true` cases are already covered by some
existing tests, but it seems that the `false` cases are currently untested.
Updates the output of `ReflectionClassConstant::__toString()` and
`ReflectionConstant::__toString()`, as well as the other ways that class
constants are printed, e.g. `ReflectionClass::__toString()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reflection(Class)Constant::__toString() should print booleans as booleans

1 participant