Merged in bugfix/PMC-900 (pull request #7012)

PMC-900

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Paula Quispe
2019-07-31 19:04:59 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -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)) {