From 51ef31f4404f2b449c0ec3670d9fa7843b2f0510 Mon Sep 17 00:00:00 2001 From: pratik bhujel Date: Thu, 14 May 2026 10:06:52 +0545 Subject: [PATCH] Fix bool casting documentation Remove the SimpleXML empty-element example from the list of false values. The php-src discussion for GH-21583 settled on documenting the existing behavior rather than changing SimpleXML boolean casts. --- language/types/boolean.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/language/types/boolean.xml b/language/types/boolean.xml index 2ca481eb3834..57f836bb76df 100644 --- a/language/types/boolean.xml +++ b/language/types/boolean.xml @@ -113,9 +113,7 @@ if ($show_separators) { Internal objects that overload their casting behaviour to bool. - For example: SimpleXML objects - created from empty elements without attributes, or - GMP objects representing the value + For example, GMP objects representing the value 0.