mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 14:49:59 +00:00
BulkCurlTask: Remove complexData parameter (BC break)
This is a leftover from when it was necessary to pass complex data to the AsyncTask constructor in order to have it locally-stored. Since this has now been superseded by storeLocal(), it doesn't make sense for this parameter to exist anymore.
This commit is contained in:
parent
2cb6307e5b
commit
779d92c656
@ -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){
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user