summaryrefslogtreecommitdiff
path: root/Zend/tests/object_types/return_type_in_function.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/object_types/return_type_in_function.phpt')
-rw-r--r--Zend/tests/object_types/return_type_in_function.phpt3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/tests/object_types/return_type_in_function.phpt b/Zend/tests/object_types/return_type_in_function.phpt
index e8ae75f490..e8f828c4bd 100644
--- a/Zend/tests/object_types/return_type_in_function.phpt
+++ b/Zend/tests/object_types/return_type_in_function.phpt
@@ -8,9 +8,8 @@ function a() : object {
}
a();
--EXPECTF--
-
Fatal error: Uncaught TypeError: Return value of a() must be an object, integer returned in %s:4
Stack trace:
#0 %s(6): a()
#1 {main}
- thrown in %s on line 4 \ No newline at end of file
+ thrown in %s on line 4