Make __call() clearer that a method may be non-public

Resolves #6151
This commit is contained in:
Matt Peel 2016-10-06 14:01:38 +13:00 committed by GitHub
parent 420cbadaac
commit 5a2591ec7d

View File

@ -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);
}
}