summaryrefslogtreecommitdiff
path: root/tests/classes
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-01-30 15:54:35 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-02-05 14:12:10 +0100
commit2f1f34952e9a0dfb3adcbec82ba69f4ac82b3a3d (patch)
treee0c10c3a43759b2ca0d4130d896e1d74fb5f3887 /tests/classes
parent790798f61e46e71775f5b4bce521c0f33b914399 (diff)
downloadphp-git-2f1f34952e9a0dfb3adcbec82ba69f4ac82b3a3d.tar.gz
Remove $errcontext argument to error handlers
I'm removing the argument entirely here, but we might want to change this to passing null or and empty array instead, if the impact of dropping it entirely turns out to be too large. This was deprecated as part of https://wiki.php.net/rfc/deprecations_php_7_2 as a doc-only deprecation.
Diffstat (limited to 'tests/classes')
-rw-r--r--tests/classes/tostring_004.phpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/classes/tostring_004.phpt b/tests/classes/tostring_004.phpt
index 907f7bc306..6029938f32 100644
--- a/tests/classes/tostring_004.phpt
+++ b/tests/classes/tostring_004.phpt
@@ -2,7 +2,7 @@
Object to string conversion: error cases and behaviour variations.
--FILE--
<?php
-function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
+function test_error_handler($err_no, $err_msg, $filename, $linenum) {
echo "Error: $err_no - $err_msg\n";
}
set_error_handler('test_error_handler');