diff --git a/includes/jobs/DataDumpGenerateJob.php b/includes/jobs/DataDumpGenerateJob.php index 8ed7b369..8d61111f 100644 --- a/includes/jobs/DataDumpGenerateJob.php +++ b/includes/jobs/DataDumpGenerateJob.php @@ -57,14 +57,12 @@ public function run() { $scriptOptions = [ 'wrapper' => MW_INSTALL_PATH . '/maintenance/run.php' ]; } - // @phan-suppress-next-line PhanDeprecatedFunction $result = Shell::makeScriptCommand( $dataDumpConfig[$type]['generate']['script'] ?? '', $generate, $scriptOptions - ) - ->limits( $dataDumpLimits ) - ->restrict( Shell::RESTRICT_NONE ) + )->limits( $dataDumpLimits ) + ->disableSandbox() ->includeStderr() ->execute() ->getExitCode(); @@ -76,10 +74,9 @@ public function run() { $dataDumpConfig[$type]['generate']['options'] ); - // @phan-suppress-next-line PhanDeprecatedFunction $result = Shell::command( $command ) ->limits( $dataDumpLimits ) - ->restrict( Shell::RESTRICT_NONE ) + ->disableSandbox() ->includeStderr() ->execute() ->getExitCode();