summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplTempFileObject_constructor_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/SplTempFileObject_constructor_error.phpt')
-rw-r--r--ext/spl/tests/SplTempFileObject_constructor_error.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/tests/SplTempFileObject_constructor_error.phpt b/ext/spl/tests/SplTempFileObject_constructor_error.phpt
index 8eb306689d..fe47366987 100644
--- a/ext/spl/tests/SplTempFileObject_constructor_error.phpt
+++ b/ext/spl/tests/SplTempFileObject_constructor_error.phpt
@@ -4,7 +4,7 @@ SPL SplTempFileObject constructor sets correct defaults when pass 0 arguments
<?php
try {
new SplTempFileObject('invalid');
-} catch (TypeException $e) {
+} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>