summaryrefslogtreecommitdiff
path: root/tests/classes/type_hinting_004.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/type_hinting_004.phpt')
-rw-r--r--tests/classes/type_hinting_004.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/classes/type_hinting_004.phpt b/tests/classes/type_hinting_004.phpt
index 27f15a3e16..299ec1dd46 100644
--- a/tests/classes/type_hinting_004.phpt
+++ b/tests/classes/type_hinting_004.phpt
@@ -144,10 +144,10 @@ Ensure type hints are enforced for functions invoked as callbacks.
?>
--EXPECTF--
---> Type hints with callback function:
-0: Argument 1 passed to f1() must be an instance of A, int given%s(%d)
+0: f1() expects argument #1 ($a) to be of type A, int given%s(%d)
in f1;
-0: Argument 1 passed to f2() must be an instance of A or null, int given%s(%d)
+0: f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
in f2;
in f2;
@@ -155,10 +155,10 @@ in f2;
---> Type hints with callback static method:
-0: Argument 1 passed to C::f1() must be an instance of A, int given%s(%d)
+0: C::f1() expects argument #1 ($a) to be of type A, int given%s(%d)
in C::f1 (static);
-0: Argument 1 passed to C::f2() must be an instance of A or null, int given%s(%d)
+0: C::f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
in C::f2 (static);
in C::f2 (static);
@@ -166,10 +166,10 @@ in C::f2 (static);
---> Type hints with callback instance method:
-0: Argument 1 passed to D::f1() must be an instance of A, int given%s(%d)
+0: D::f1() expects argument #1 ($a) to be of type A, int given%s(%d)
in C::f1 (instance);
-0: Argument 1 passed to D::f2() must be an instance of A or null, int given%s(%d)
+0: D::f2() expects argument #1 ($a) to be of type ?A, int given%s(%d)
in C::f2 (instance);
in C::f2 (instance);