removed impossible method name contraint

This commit is contained in:
Tobias Bossert 2022-03-20 18:42:39 +01:00 committed by GitHub
parent 76bd8a116a
commit be65db7207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

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