mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 16:45:13 +00:00
add some phpstan array types
This commit is contained in:
@ -46,6 +46,7 @@ class BulkCurlTask extends AsyncTask{
|
||||
*
|
||||
* @param mixed[][] $operations
|
||||
* @param mixed|null $complexData
|
||||
* @phpstan-param list<array{page: string, timeout?: float, extraHeaders?: list<string>, extraOpts?: array<int, mixed>}> $operations
|
||||
*/
|
||||
public function __construct(array $operations, $complexData = null){
|
||||
$this->storeLocal($complexData);
|
||||
@ -53,6 +54,7 @@ class BulkCurlTask extends AsyncTask{
|
||||
}
|
||||
|
||||
public function onRun(){
|
||||
/** @phpstan-var list<array{page: string, timeout?: float, extraHeaders?: list<string>, extraOpts?: array<int, mixed>}> $operations */
|
||||
$operations = unserialize($this->operations);
|
||||
$results = [];
|
||||
foreach($operations as $op){
|
||||
|
@ -51,6 +51,7 @@ class SendUsageTask extends AsyncTask{
|
||||
|
||||
/**
|
||||
* @param string[] $playerList
|
||||
* @phpstan-param array<string, string> $playerList
|
||||
*/
|
||||
public function __construct(Server $server, int $type, array $playerList = []){
|
||||
$endpoint = "http://" . $server->getProperty("anonymous-statistics.host", "stats.pocketmine.net") . "/";
|
||||
|
Reference in New Issue
Block a user