From 9413c0faf20d4d92ab8745553eba704a7269dd5e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 11 Nov 2023 17:11:19 +0100 Subject: [PATCH] Fix --- src/Loop/Generic/PeriodicLoopInternal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Loop/Generic/PeriodicLoopInternal.php b/src/Loop/Generic/PeriodicLoopInternal.php index cbe1ed0d7..e3b626b4d 100644 --- a/src/Loop/Generic/PeriodicLoopInternal.php +++ b/src/Loop/Generic/PeriodicLoopInternal.php @@ -39,13 +39,13 @@ final class PeriodicLoopInternal extends PeriodicLoop * Constructor. * * @param MTProto $API API instance - * @param Closure $callable Method + * @param Closure $callable Method * @param string $name Loop name * @param int|null $interval Interval */ public function __construct(MTProto $API, Closure $callable, string $name, ?int $interval) { $this->init($API); - parent::__construct($callable, $name, $interval); + parent::__construct(static fn () => $callable(), $name, $interval); } }