added missing @var property types (reported by phpstan)

This commit is contained in:
Dylan K. Taylor
2020-01-09 14:13:54 +00:00
parent cda3e6f4dc
commit 1eedac87b2
63 changed files with 190 additions and 1 deletions

View File

@ -59,12 +59,16 @@ abstract class AsyncTask extends Collectable{
/** @var \Threaded */
public $progressUpdates;
/** @var scalar|null */
private $result = null;
/** @var bool */
private $serialized = false;
/** @var bool */
private $cancelRun = false;
/** @var int|null */
private $taskId = null;
/** @var bool */
private $crashed = false;
public function run(){

View File

@ -35,7 +35,9 @@ class AsyncWorker extends Worker{
/** @var mixed[] */
private static $store = [];
/** @var \ThreadedLogger */
private $logger;
/** @var int */
private $id;
/** @var int */

View File

@ -34,6 +34,7 @@ use function unserialize;
* The result of this AsyncTask is an array of arrays (returned from {@link Internet::simpleCurl}) or InternetException objects.
*/
class BulkCurlTask extends AsyncTask{
/** @var string */
private $operations;
/**

View File

@ -44,7 +44,9 @@ class SendUsageTask extends AsyncTask{
public const TYPE_STATUS = 2;
public const TYPE_CLOSE = 3;
/** @var string */
public $endpoint;
/** @var string */
public $data;
/**