From 6d53a956ac906f845faa46baa4ba3a892f7021f1 Mon Sep 17 00:00:00 2001 From: Prasad <prasad@vtiger.com> Date: Tue, 25 Oct 2022 15:18:35 +0530 Subject: [PATCH] Fixed static function signatures in PEAR --- PEAR.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PEAR.php b/PEAR.php index be09432e1..3147209c3 100644 --- a/PEAR.php +++ b/PEAR.php @@ -234,7 +234,7 @@ class PEAR * @return mixed A reference to the variable. If not set it will be * auto initialised to NULL. */ - function &getStaticProperty($class, $var) + static function &getStaticProperty($class, $var) { static $properties; return $properties[$class][$var]; @@ -252,7 +252,7 @@ class PEAR * @param mixed $args The arguments to pass to the function * @return void */ - function registerShutdownFunc($func, $args = array()) + static function registerShutdownFunc($func, $args = array()) { $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args); } @@ -271,7 +271,7 @@ class PEAR * @access public * @return bool true if parameter is an error */ - function isError($data, $code = null) + static function isError($data, $code = null) { if (is_a($data, 'PEAR_Error')) { if (is_null($code)) { @@ -327,7 +327,7 @@ class PEAR * @since PHP 4.0.5 */ - function setErrorHandling($mode = null, $options = null) + static function setErrorHandling($mode = null, $options = null) { if (isset($this) && is_a($this, 'PEAR')) { $setmode = $this->_default_error_mode; @@ -516,7 +516,7 @@ class PEAR * @see PEAR::setErrorHandling * @since PHP 4.0.5 */ - function &raiseError($message = null, + static function &raiseError($message = null, $code = null, $mode = null, $options = null, -- GitLab