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); } /**