diff --git a/src/pocketmine/command/defaults/TimingsCommand.php b/src/pocketmine/command/defaults/TimingsCommand.php index 8b2846e81..f4105cb7d 100644 --- a/src/pocketmine/command/defaults/TimingsCommand.php +++ b/src/pocketmine/command/defaults/TimingsCommand.php @@ -121,8 +121,9 @@ class TimingsCommand extends VanillaCommand{ CURLOPT_AUTOREFERER => false, CURLOPT_FOLLOWLOCATION => false ]] - ], $sender); + ]); $this->host = $host; + $this->storeLocal($sender); } public function onCompletion(Server $server){ diff --git a/src/pocketmine/scheduler/BulkCurlTask.php b/src/pocketmine/scheduler/BulkCurlTask.php index d7a0e4b39..b181dc33b 100644 --- a/src/pocketmine/scheduler/BulkCurlTask.php +++ b/src/pocketmine/scheduler/BulkCurlTask.php @@ -42,11 +42,9 @@ class BulkCurlTask extends AsyncTask{ * "timeout", "extraHeaders" and "extraOpts". Documentation of these options are same as those in * {@link Utils::simpleCurl}. * - * @param array $operations - * @param mixed|null $complexData + * @param array $operations */ - public function __construct(array $operations, $complexData = null){ - $this->storeLocal($complexData); + public function __construct(array $operations){ $this->operations = serialize($operations); }