summaryrefslogtreecommitdiff
path: root/tests/classes/type_hinting_005d.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-03-27 16:58:30 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-05-07 13:45:28 +0200
commitfd2db1192997f5778139ea8e9d25189c7c08af2c (patch)
tree242059c49aa51b47b6edc30a404fbc2dce764b49 /tests/classes/type_hinting_005d.phpt
parent49c4ab3c394a6e18ab09582bccf6a26d88c4a616 (diff)
downloadphp-git-fd2db1192997f5778139ea8e9d25189c7c08af2c.tar.gz
Always generate fatal error for LSP failures
RFC: https://wiki.php.net/rfc/lsp_errors
Diffstat (limited to 'tests/classes/type_hinting_005d.phpt')
-rw-r--r--tests/classes/type_hinting_005d.phpt7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/classes/type_hinting_005d.phpt b/tests/classes/type_hinting_005d.phpt
index a1ce30950c..51c2a5a995 100644
--- a/tests/classes/type_hinting_005d.phpt
+++ b/tests/classes/type_hinting_005d.phpt
@@ -4,11 +4,8 @@ Check type hint compatibility in overrides with array hints.
<?php
Class C { function f($a) {} }
-echo "Array hint, should be nothing.\n";
+// Array hint, should be nothing.
Class D extends C { function f(array $a) {} }
?>
-==DONE==
--EXPECTF--
-Warning: Declaration of D::f(array $a) should be compatible with C::f($a) in %s on line 5
-Array hint, should be nothing.
-==DONE==
+Fatal error: Declaration of D::f(array $a) must be compatible with C::f($a) in %s on line 5