From 7ba452e3c728bedccc117f4488845596a7cfbd77 Mon Sep 17 00:00:00 2001 From: Kevin Israel Date: Thu, 10 Mar 2016 18:04:07 -0500 Subject: [PATCH] Replace create_function() with a closure As in 266da0fb89ec4ae5 in extensions/Flow. Change-Id: I0f6a38761cf1fa2956dad0f44fa023e1a8855df4 --- maintenance/dumpBackup.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maintenance/dumpBackup.php b/maintenance/dumpBackup.php index 190432517d..d4255a0f2f 100644 --- a/maintenance/dumpBackup.php +++ b/maintenance/dumpBackup.php @@ -102,7 +102,9 @@ TEXT $this->fatalError( "Unable to open file {$filename}\n" ); } $pages = array_map( 'trim', $pages ); - $this->pages = array_filter( $pages, create_function( '$x', 'return $x !== "";' ) ); + $this->pages = array_filter( $pages, function ( $x ) { + return $x !== ''; + } ); } if ( $this->hasOption( 'start' ) ) { -- 2.20.1