Skip to content

Commit 47d80e3

Browse files
committed
Make test_PEAR_Dependency2::singleton() method static
Because it is called statically
1 parent de70ed8 commit 47d80e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/download_test_classes.php.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ class test_PEAR_Dependency2 extends PEAR_Dependency2
525525
var $_extensions;
526526
var $_installerVer;
527527

528-
function &singleton($config = null, $installoptions = null, $package = null,
529-
$state = PEAR_VALIDATE_INSTALLING)
528+
static function &singleton($config = null, $installoptions = null, $package = null,
529+
$state = PEAR_VALIDATE_INSTALLING)
530530
{
531531
if (!isset($GLOBALS['_test_dep'])) {
532532
$GLOBALS['_test_dep'] = new test_PEAR_Dependency2($config,

0 commit comments

Comments
 (0)