summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2016-08-08 16:15:59 +0100
committerNikita Popov <nikic@php.net>2016-08-11 18:44:43 +0200
commit1dab96c1db2d7c5663569d9c55f63d8e25a0dddc (patch)
tree5f7ed3db53467a96ebbea5975ec17d68a8127895 /tests
parentb33e9651117d8f7cfa6b469a8a6bda68d82b4365 (diff)
downloadphp-git-1dab96c1db2d7c5663569d9c55f63d8e25a0dddc.tar.gz
Show "or null" in TypeErrors for nullable arg_infos
Diffstat (limited to 'tests')
-rw-r--r--tests/classes/type_hinting_004.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/classes/type_hinting_004.phpt b/tests/classes/type_hinting_004.phpt
index 8883f26336..95df6264dd 100644
--- a/tests/classes/type_hinting_004.phpt
+++ b/tests/classes/type_hinting_004.phpt
@@ -152,7 +152,7 @@ Ensure type hints are enforced for functions invoked as callbacks.
0: Argument 1 passed to f1() must be an instance of A, integer given%s(%d)
in f1;
-0: Argument 1 passed to f2() must be an instance of A, integer given%s(%d)
+0: Argument 1 passed to f2() must be an instance of A or null, integer given%s(%d)
in f2;
in f2;
@@ -163,7 +163,7 @@ in f2;
0: Argument 1 passed to C::f1() must be an instance of A, integer given%s(%d)
in C::f1 (static);
-0: Argument 1 passed to C::f2() must be an instance of A, integer given%s(%d)
+0: Argument 1 passed to C::f2() must be an instance of A or null, integer given%s(%d)
in C::f2 (static);
in C::f2 (static);
@@ -174,7 +174,7 @@ in C::f2 (static);
0: Argument 1 passed to D::f1() must be an instance of A, integer given%s(%d)
in C::f1 (instance);
-0: Argument 1 passed to D::f2() must be an instance of A, integer given%s(%d)
+0: Argument 1 passed to D::f2() must be an instance of A or null, integer given%s(%d)
in C::f2 (instance);
in C::f2 (instance);