Skip to content

Commit 72d3c6f

Browse files
committed
Remove use of create_function in PEAR Registry
1 parent bf07026 commit 72d3c6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PEAR/Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ function checkFileMap($path, $package = false, $api = '1.0', $attrs = false)
20642064
if (!class_exists('PEAR_Installer_Role')) {
20652065
require_once 'PEAR/Installer/Role.php';
20662066
}
2067-
$notempty = create_function('$a','return !empty($a);');
2067+
$notempty = function($a) { return !empty($a); };
20682068
}
20692069
$package = is_array($package) ? array(strtolower($package[0]), strtolower($package[1]))
20702070
: strtolower($package);

0 commit comments

Comments
 (0)