From 507f1fec665c4adbda9c01ac231c37aa2e43ac7a Mon Sep 17 00:00:00 2001 From: Milwad <98118400+milwad-dev@users.noreply.github.com> Date: Tue, 23 May 2023 21:33:05 +0330 Subject: [PATCH] change closure to arrow function in ManagesFrequencies (#47185) --- src/Illuminate/Console/Scheduling/ManagesFrequencies.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php index 8eb7fea22ee9..020144ebeae0 100644 --- a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php @@ -66,9 +66,7 @@ private function inTimeInterval($startTime, $endTime) } } - return function () use ($now, $startTime, $endTime) { - return $now->between($startTime, $endTime); - }; + return fn () => $now->between($startTime, $endTime); } /**