diff --git a/language/oop5/magic.xml b/language/oop5/magic.xml index 3c0521aba1..25d6fa2bbf 100644 --- a/language/oop5/magic.xml +++ b/language/oop5/magic.xml @@ -1,5 +1,5 @@ - + Magic Methods @@ -143,6 +143,8 @@ Hello It is worth noting that before PHP 5.2.0 the __toString method was only called when it was directly combined with echo or print. + Since PHP 5.2.0, converting objects without __toString + method to string would cause E_RECOVERABLE_ERROR.