X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fexport%2FDumpPipeOutput.php;h=26010dae9e8ac8acac76f4ebb6bdffde3083e5fa;hb=4f7580fe34229ba9c8a8acb5f723642b8050475d;hp=61177abe2516dc3d0ae7c43d294003e07c86acb9;hpb=5a4fdb5b4e82fd68e200a887cac9d4e106fed0af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/export/DumpPipeOutput.php b/includes/export/DumpPipeOutput.php index 61177abe25..26010dae9e 100644 --- a/includes/export/DumpPipeOutput.php +++ b/includes/export/DumpPipeOutput.php @@ -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]; }