Skip to content

Commit 3b7d55b

Browse files
committed
Remove uses of create_function in PackageFile_v2
1 parent 87896ef commit 3b7d55b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PEAR/PackageFile/v2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,12 +423,12 @@ function _differentName($handle, $name, $selfname)
423423
function _unmatchedMaintainers($my, $yours)
424424
{
425425
if ($my) {
426-
array_walk($my, create_function('&$i, $k', '$i = $i["handle"];'));
426+
array_walk($my, function(&$i, $k) { $i = $i["handle"]; });
427427
$this->_stack->push(__FUNCTION__, 'error', array('handles' => $my),
428428
'package.xml 2.0 has unmatched extra maintainers "%handles%"');
429429
}
430430
if ($yours) {
431-
array_walk($yours, create_function('&$i, $k', '$i = $i["handle"];'));
431+
array_walk($yours, function(&$i, $k) { $i = $i["handle"]; });
432432
$this->_stack->push(__FUNCTION__, 'error', array('handles' => $yours),
433433
'package.xml 1.0 has unmatched extra maintainers "%handles%"');
434434
}

0 commit comments

Comments
 (0)