Merge "for exports, make sure we compare page titles as strings only"
[lhc/web/wiklou.git] / includes / export / DumpPipeOutput.php
index 61177ab..26010da 100644 (file)
@@ -34,7 +34,7 @@ class DumpPipeOutput extends DumpFileOutput {
 
        /**
         * @param string $command
-        * @param string $file
+        * @param string|null $file
         */
        function __construct( $command, $file = null ) {
                if ( !is_null( $file ) ) {
@@ -61,10 +61,10 @@ class DumpPipeOutput extends DumpFileOutput {
         * @param string $command
         */
        function startCommand( $command ) {
-               $spec = array(
-                       0 => array( "pipe", "r" ),
-               );
-               $pipes = array();
+               $spec = [
+                       0 => [ "pipe", "r" ],
+               ];
+               $pipes = [];
                $this->procOpenResource = proc_open( $command, $spec, $pipes );
                $this->handle = $pipes[0];
        }