1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 09:58:59 +01:00
This commit is contained in:
Daniil Gentili 2023-11-11 17:11:19 +01:00
parent 401f111c31
commit 9413c0faf2

View File

@ -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);
} }
} }