diff --git a/reference/var/functions/settype.xml b/reference/var/functions/settype.xml index 3700d30e64ab..0cf24423dc77 100644 --- a/reference/var/functions/settype.xml +++ b/reference/var/functions/settype.xml @@ -87,6 +87,41 @@ + + &reftitle.errors; + + Throws a ValueError if the value of + type is not a valid type, as of PHP 8.0.0. + Prior to PHP 8.0.0, a E_WARNING was emitted + and &false; was returned. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + Now throws a ValueError when an invalid + type is passed to type. Previously, a + E_WARNING was emitted and the function returned + &false;. + + + + + + + &reftitle.examples;