mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 09:58:59 +01:00
Fix
This commit is contained in:
parent
401f111c31
commit
9413c0faf2
@ -39,13 +39,13 @@ final class PeriodicLoopInternal extends PeriodicLoop
|
|||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param MTProto $API API instance
|
* @param MTProto $API API instance
|
||||||
* @param Closure $callable Method
|
* @param Closure $callable Method
|
||||||
* @param string $name Loop name
|
* @param string $name Loop name
|
||||||
* @param int|null $interval Interval
|
* @param int|null $interval Interval
|
||||||
*/
|
*/
|
||||||
public function __construct(MTProto $API, Closure $callable, string $name, ?int $interval)
|
public function __construct(MTProto $API, Closure $callable, string $name, ?int $interval)
|
||||||
{
|
{
|
||||||
$this->init($API);
|
$this->init($API);
|
||||||
parent::__construct($callable, $name, $interval);
|
parent::__construct(static fn () => $callable(), $name, $interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user