From 5a2591ec7d378334d9865c933b05051b69981e15 Mon Sep 17 00:00:00 2001 From: Matt Peel Date: Thu, 6 Oct 2016 14:01:38 +1300 Subject: [PATCH] Make __call() clearer that a method may be non-public Resolves #6151 --- core/Object.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Object.php b/core/Object.php index 6f75896ea..8d6c0b41b 100755 --- a/core/Object.php +++ b/core/Object.php @@ -777,7 +777,7 @@ abstract class Object { } else { // Please do not change the exception code number below. $class = get_class($this); - throw new Exception("Object->__call(): the method '$method' does not exist on '$class'", 2175); + throw new Exception("Object->__call(): the method '$method' does not exist on '$class', or the method is not public.", 2175); } }