Skip to content

Commit caaaa67

Browse files
Reflection: add UPGRADING note about changed boolean constant display
1 parent cfcc4ef commit caaaa67

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
@@ -682,6 +682,13 @@ PHP 8.6 UPGRADE NOTES
682682
landed, which is a tautology; an invalid callback throws a TypeError via
683683
ZPP before the function body is reached.
684684

685+
- Reflection:
686+
. The outputs of ReflectionClassConstant::__toString() and
687+
ReflectionConstant::__toString() for constants with boolean values have been
688+
changed to use `true` and `false` rather than `1` and an empty string. This
689+
also affects other ways of printing class constants, e.g.
690+
`ReflectionClass::__toString()`.
691+
685692
- Sockets:
686693
. socket_addrinfo_lookup() now has an additional optional argument $error_code
687694
that, when not null, receives the error code on failure (one of the EAI_*

0 commit comments

Comments
 (0)