Skip to content

Commit d385354

Browse files
Reflection: add UPGRADING note about changed boolean constant display
1 parent 0615184 commit d385354

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎UPGRADING‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,13 @@ PHP 8.6 UPGRADE NOTES
736736
landed, which is a tautology; an invalid callback throws a TypeError via
737737
ZPP before the function body is reached.
738738

739+
- Reflection:
740+
. The outputs of ReflectionClassConstant::__toString() and
741+
ReflectionConstant::__toString() for constants with boolean values have been
742+
changed to use `true` and `false` rather than `1` and an empty string. This
743+
also affects other ways of printing class constants, e.g.
744+
`ReflectionClass::__toString()`.
745+
739746
- Sockets:
740747
. socket_addrinfo_lookup() now has an additional optional argument $error_code
741748
that, when not null, receives the error code on failure (one of the EAI_*

0 commit comments

Comments
 (0)