Skip to content

Commit

Permalink
feat: add support for "nesbot/carbon" 3 (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Georg <[email protected]>
  • Loading branch information
Chris53897 and Chris8934 authored Feb 2, 2024
1 parent 25a067f commit 227246e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Entity/ScheduledCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ public function getNextRunDate(bool $checkExecuteImmediately = true): ?DateTime
public function getNextRunDateForHumans(): ?string
{
try{
if(!$this->getNextRunDate())
{return null;}

return Carbon::instance($this->getNextRunDate())->diffForHumans();
}
catch (\Exception)
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"symfony/form": "^5.4 || ^6.0",
"symfony/asset": "^5.4 || ^6.0",
"symfony/validator": "^5.4 || ^6.0",
"nesbot/carbon": "^2.53",
"nesbot/carbon": "^2.69 || ^3.0",
"symfony/lock": "^5.4 || ^6.0",
"symfony/config": "^5.4 || ^6.0",
"symfony/dependency-injection": "^5.4 || ^6.0",
Expand All @@ -45,7 +45,7 @@
"require-dev": {
"phpunit/phpunit": "^9.6 || ^10.0, < 10.1",
"symfony/phpunit-bridge": "^5.4 || ^6.0",
"doctrine/doctrine-fixtures-bundle": "^3.4.0",
"doctrine/doctrine-fixtures-bundle": "^3.5.0",
"phpstan/phpstan": "^1.10",
"symfony/debug-bundle": "^5.4 || ^6.0",
"symfony/dom-crawler": "^5.4 || ^6.0",
Expand Down

0 comments on commit 227246e

Please sign in to comment.