History log of /PHP-8.2/ext/reflection/tests/ReflectionAttribute_toString.phpt (Results 1 – 3 of 3)
Revision Date Author Comments
# f34114b1 01-Oct-2021 Nikita Popov

Export AST for default value strings in reflection

When dumping default values in ReflectionXXX::__toString(), for
expression initializers print the AST export instead of trying to
e

Export AST for default value strings in reflection

When dumping default values in ReflectionXXX::__toString(), for
expression initializers print the AST export instead of trying to
evaluate the expression. With the introduction of "new in
initializers" the result of the evaluation will commonly not be
printable at all, and "__toString" will throw an exception, which
is not particularly useful. Using the AST export also provides more
information on how the parameter was originally declared, e.g. it
preserves the fact that a certain constant was used.

Closes GH-7540.

show more ...


# 882289eb 14-Jul-2021 Nikita Popov

Fix leak if attribute arg evaluation fails while printing


# bc39abe8 19-Jun-2021 Benjamin Eberlei

Fix #80097: Have ReflectionAttribute implement Reflector and __toString

Implement printing for ReflectionAttribute. Attributes aren't
printed as part of reflection output for other struc

Fix #80097: Have ReflectionAttribute implement Reflector and __toString

Implement printing for ReflectionAttribute. Attributes aren't
printed as part of reflection output for other structures (classes
etc) yet.

Closes GH-6117.

show more ...