Skip to content

Commit 7cf175f

Browse files
committed
Remove create_function() use in phpt_test
1 parent b3db06d commit 7cf175f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpt_test.php.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class PEAR_PHPTest
336336
function assertPackageInfoEquals($control, $test, $message)
337337
{
338338
$this->assertNoErrors($message, debug_backtrace());
339-
$a = create_function('$a,$b', 'return strcmp($a["name"],$b["name"]);');
339+
$a = function($a, $b) { return strcmp($a["name"], $b["name"]); };
340340
if (isset($control[0])) {
341341
if (!isset($test[0]) || (count($control) != count($test))) {
342342
echo "Invalid packageInfo\n";

0 commit comments

Comments
 (0)