Skip to content

Commit

Permalink
Merge pull request #117 from bastien-phi/fix-php-8.4-deprecations
Browse files Browse the repository at this point in the history
Use explicit nullable type is Task::nextRunAt
  • Loading branch information
freekmurze authored Jan 17, 2025
2 parents f36a80a + ec16146 commit 9af9b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/ScheduledTasks/Tasks/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function previousRunAt(): CarbonInterface
return Date::instance($dateTime);
}

public function nextRunAt(CarbonInterface $now = null): CarbonInterface
public function nextRunAt(?CarbonInterface $now = null): CarbonInterface
{
$dateTime = (new CronExpression($this->cronExpression()))->getNextRunDate(
$now ?? now(),
Expand Down

0 comments on commit 9af9b59

Please sign in to comment.