diff --git a/reference/spl_types/splfloat.xml b/reference/spl_types/splfloat.xml index 56a7fccd2f..d9dc551bdd 100644 --- a/reference/spl_types/splfloat.xml +++ b/reference/spl_types/splfloat.xml @@ -83,7 +83,7 @@ $newFloat = new SplFloat(3); try { $float = 'Try to cast a string value for fun'; } catch (UnexpectedValueException $uve) { - echo $e->getMessage() . PHP_EOL; + echo $uve->getMessage() . PHP_EOL; } echo $float . PHP_EOL;