diff --git a/cli.php b/cli.php index 13f54d7..610b064 100644 --- a/cli.php +++ b/cli.php @@ -184,6 +184,9 @@ class cli { if ($method->name === "__construct") continue; + // The private/protected methods can not be called + if ($method->isPrivate () || $method->isProtected ()) + continue; if ($key > 0 && $argv[0] !== "-listmethodsonly") echo "\n"; if ($argv[0] !== "-listmethodsonly")