Skip to content

Commit 1488617

Browse files
committed
Make PEAR_Dependency2::normalizeDep() static
Also adjust one call to it, though this is not strictly necessary.
1 parent 72d3c6f commit 1488617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PEAR/Dependency2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ function validateDependency1($dep, $params = array())
12321232
$dep['optional'] = 'no';
12331233
}
12341234

1235-
list($newdep, $type) = $this->normalizeDep($dep);
1235+
list($newdep, $type) = self::normalizeDep($dep);
12361236
if (!$newdep) {
12371237
return $this->raiseError("Invalid Dependency");
12381238
}
@@ -1246,7 +1246,7 @@ function validateDependency1($dep, $params = array())
12461246
/**
12471247
* Convert a 1.0 dep into a 2.0 dep
12481248
*/
1249-
function normalizeDep($dep)
1249+
static function normalizeDep($dep)
12501250
{
12511251
$types = array(
12521252
'pkg' => 'Package',

0 commit comments

Comments
 (0)