Merge pull request #6157 from madmatt/patch-2

Make __call() clearer that a method may be non-public
This commit is contained in:
Daniel Hensby 2016-10-07 12:40:48 +01:00 committed by GitHub
commit 5580100ade

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