mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
removed impossible method name contraint
This commit is contained in:
parent
76bd8a116a
commit
be65db7207
@ -50,10 +50,8 @@ class ViewableData_Debugger extends ViewableData
|
||||
// debugging information for the entire class
|
||||
$reflector = new ReflectionObject($this->object);
|
||||
$debug = "<b>Debugging Information: all methods available in '{$class}'</b><br/><ul>";
|
||||
|
||||
foreach ($this->object->allMethodNames() as $method) {
|
||||
// check that the method is public
|
||||
if ($method[0] === strtoupper($method[0]) && $method[0] != '_') {
|
||||
if ($method[0] !== '_') {
|
||||
if ($reflector->hasMethod($method) && $method = $reflector->getMethod($method)) {
|
||||
if ($method->isPublic()) {
|
||||
$debug .= "<li>\${$method->getName()}";
|
||||
|
Loading…
Reference in New Issue
Block a user