diff --git a/thirdparty/pear/Console/Getopt.php b/thirdparty/pear/Console/Getopt.php index f6b281378..5108429cc 100644 --- a/thirdparty/pear/Console/Getopt.php +++ b/thirdparty/pear/Console/Getopt.php @@ -63,7 +63,7 @@ class Console_Getopt { * @access public * */ - function getopt2($args, $short_options, $long_options = null) + public static function getopt2($args, $short_options, $long_options = null) { return Console_Getopt::doGetopt(2, $args, $short_options, $long_options); } @@ -72,7 +72,7 @@ class Console_Getopt { * This function expects $args to start with the script name (POSIX-style). * Preserved for backwards compatibility. * @see getopt2() - */ + */ function getopt($args, $short_options, $long_options = null) { return Console_Getopt::doGetopt(1, $args, $short_options, $long_options); @@ -81,7 +81,7 @@ class Console_Getopt { /** * The actual implementation of the argument parsing code. */ - function doGetopt($version, $args, $short_options, $long_options = null) + public static function doGetopt($version, $args, $short_options, $long_options = null) { // in case you pass directly readPHPArgv() as the first arg if (PEAR::isError($args)) {