summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2020-04-26 07:34:19 +0200
committerGabriel Caruso <carusogabriel34@gmail.com>2020-04-27 16:32:00 +0200
commit7ce8c5ad892b8ce65426d7a8a6cf7376d56c98ee (patch)
treed7d9b9aade79f97180c598fbc13b7d4d0ad4aff1 /tests
parentf38d6cea420f1ab6975647cfc87292072538629f (diff)
downloadphp-git-7ce8c5ad892b8ce65426d7a8a6cf7376d56c98ee.tar.gz
Slipt error messages while checking magic methods attributes
Closes GH-5465
Diffstat (limited to 'tests')
-rw-r--r--tests/classes/__call_005.phpt2
-rw-r--r--tests/classes/__call_007.phpt2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/classes/__call_005.phpt b/tests/classes/__call_005.phpt
index 8db8cec43e..20416edb5d 100644
--- a/tests/classes/__call_005.phpt
+++ b/tests/classes/__call_005.phpt
@@ -22,7 +22,7 @@ $b = new B();
$b->test();
?>
--EXPECTF--
-Warning: The magic method A::__call() must have public visibility and cannot be static in %s__call_005.php on line 3
+Warning: The magic method A::__call() must have public visibility in %s__call_005.php on line 3
In A::__call(test1, array(1,a))
object(B)#1 (0) {
}
diff --git a/tests/classes/__call_007.phpt b/tests/classes/__call_007.phpt
index 6f90e84f7d..e2edb8a530 100644
--- a/tests/classes/__call_007.phpt
+++ b/tests/classes/__call_007.phpt
@@ -51,7 +51,7 @@ try {
}
?>
--EXPECTF--
-Warning: The magic method A::__call() must have public visibility and cannot be static in %s on line 3
+Warning: The magic method A::__call() cannot be static in %s on line 3
---> Invoke __call via simple method call.
object(A)#1 (0) {
}