diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2020-04-16 01:39:51 +0200 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2020-04-16 10:34:58 +0200 |
commit | 75a58ba5226b45b4e2d68e859fc3517b9c7de6dd (patch) | |
tree | 95ad340c4763148c3366ec5ecc0eab699445fb16 /tests | |
parent | 481caf17bc4e40fd437e6ed51cb4c97ed8c10e96 (diff) | |
download | php-git-75a58ba5226b45b4e2d68e859fc3517b9c7de6dd.tar.gz |
Improve error messages for magic methods by appending method's class
Closes GH-5397.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/classes/__call_005.phpt | 2 | ||||
-rw-r--r-- | tests/classes/__call_007.phpt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/classes/__call_005.phpt b/tests/classes/__call_005.phpt index 8c4d52efa7..8db8cec43e 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 __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 and cannot be static 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 26dd8e29b6..6f90e84f7d 100644 --- a/tests/classes/__call_007.phpt +++ b/tests/classes/__call_007.phpt @@ -51,7 +51,7 @@ try { } ?> --EXPECTF-- -Warning: The magic method __call() must have public visibility and cannot be static in %s on line 3 +Warning: The magic method A::__call() must have public visibility and cannot be static in %s on line 3 ---> Invoke __call via simple method call. object(A)#1 (0) { } |