Skip to content

Commit

Permalink
change closure to arrow function in ManagesFrequencies (#47185)
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed May 23, 2023
1 parent 2a29538 commit 507f1fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Console/Scheduling/ManagesFrequencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 507f1fe

Please sign in to comment.