From ccbf7d5a06f7e4d1260a9b9cb2c0ef8a16224b2c Mon Sep 17 00:00:00 2001 From: Nyholm Date: Wed, 21 Oct 2020 23:43:19 +0200 Subject: [PATCH] [RateLimiter] Remove Window::sleep() --- src/Symfony/Component/RateLimiter/Window.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Symfony/Component/RateLimiter/Window.php b/src/Symfony/Component/RateLimiter/Window.php index 46ca1b38204b6..6a0934c05febe 100644 --- a/src/Symfony/Component/RateLimiter/Window.php +++ b/src/Symfony/Component/RateLimiter/Window.php @@ -85,12 +85,4 @@ public function calculateTimeForTokens(int $tokens): int return $cyclesRequired * $this->intervalInSeconds; } - - /** - * @internal - */ - public function __sleep(): array - { - return ['id', 'hitCount', 'intervalInSeconds', 'timer', 'maxSize']; - } }