summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-05-21 18:10:31 +0000
committerMarcus Boerger <helly@php.net>2006-05-21 18:10:31 +0000
commit75771301569ebbcb5bd5e3a4db325b955241404a (patch)
tree72724c4fc043806b00e0b6a97ee87faebe8d81e1 /tests/lang
parent1be624e7baf410cf7b99796a943a3f5a0e0d40d1 (diff)
downloadphp-git-75771301569ebbcb5bd5e3a4db325b955241404a.tar.gz
- MFH improve error messages
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/bug24658.phpt2
-rw-r--r--tests/lang/type_hints_001.phpt2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lang/bug24658.phpt b/tests/lang/bug24658.phpt
index 5f3b324b61..944fe44ce8 100644
--- a/tests/lang/bug24658.phpt
+++ b/tests/lang/bug24658.phpt
@@ -53,4 +53,4 @@ int(2)
object(foo)#%d (0) {
}
-Catchable fatal error: Argument 1 passed to typehint() must be an object of class foo in %s on line %d
+Catchable fatal error: Argument 1 passed to typehint() must be an instance of foo, integer given in %s on line %d
diff --git a/tests/lang/type_hints_001.phpt b/tests/lang/type_hints_001.phpt
index dc14706a36..57808d474f 100644
--- a/tests/lang/type_hints_001.phpt
+++ b/tests/lang/type_hints_001.phpt
@@ -23,4 +23,4 @@ type_hint_foo($bar);
?>
--EXPECTF--
-Catchable fatal error: Argument 1 passed to type_hint_foo() must be an instance of Foo, called in %s on line 16 and defined in %s on line 9
+Catchable fatal error: Argument 1 passed to type_hint_foo() must be an instance of Foo, instance of Bar given, called in %s on line 16 and defined in %s on line 9