From: Kevin Israel Date: Thu, 10 Mar 2016 23:04:07 +0000 (-0500) Subject: Replace create_function() with a closure X-Git-Tag: 1.31.0-rc.0~7656^2 X-Git-Url: https://git.cyclocoop.org/admin/%7B%7Blocalurl:Special:UserLogin%7D%7D?a=commitdiff_plain;h=7ba452e3c728bedccc117f4488845596a7cfbd77;p=lhc%2Fweb%2Fwiklou.git Replace create_function() with a closure As in 266da0fb89ec4ae5 in extensions/Flow. Change-Id: I0f6a38761cf1fa2956dad0f44fa023e1a8855df4 --- 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' ) ) {