mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6157 from madmatt/patch-2
Make __call() clearer that a method may be non-public
This commit is contained in:
commit
5580100ade
@ -777,7 +777,7 @@ abstract class Object {
|
|||||||
} else {
|
} else {
|
||||||
// Please do not change the exception code number below.
|
// Please do not change the exception code number below.
|
||||||
$class = get_class($this);
|
$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user