Skip to content

Commit

Permalink
dont use enums
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 19, 2024
1 parent 3c1ba5f commit 680036d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/Illuminate/Console/Scheduling/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use DateTimeInterface;
use Illuminate\Bus\UniqueLock;
use Illuminate\Console\Application;
use Illuminate\Console\Scheduling\Enums\Day;
use Illuminate\Container\Container;
use Illuminate\Contracts\Bus\Dispatcher;
use Illuminate\Contracts\Cache\Repository as Cache;
Expand All @@ -29,13 +28,13 @@ class Schedule
__call as macroCall;
}

const SUNDAY = Day::Sunday;
const MONDAY = Day::Monday;
const TUESDAY = Day::Tuesday;
const WEDNESDAY = Day::Wednesday;
const THURSDAY = Day::Thursday;
const FRIDAY = Day::Friday;
const SATURDAY = Day::Saturday;
const SUNDAY = 0;
const MONDAY = 1;
const TUESDAY = 2;
const WEDNESDAY = 3;
const THURSDAY = 4;
const FRIDAY = 5;
const SATURDAY = 6;

/**
* All of the events on the schedule.
Expand Down

0 comments on commit 680036d

Please sign in to comment.