Skip to content

Commit 508026f

Browse files
Merge pull request #97 from TheDragonCode/4.x
Constants `DAY`, `MONTH` and `WEEK` was deleted from `Ttl` class
2 parents 7c7d4c6 + 9439ca1 commit 508026f

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,6 @@ Cache::make()->ttl(fn () => 10);
317317

318318
Cache::make()->ttl(Carbon::now()->addDay());
319319
Cache::make()->ttl(new DateTime('tomorrow'));
320-
321-
Cache::make()->ttl(Ttl::DAY);
322-
Cache::make()->ttl(Ttl::WEEK);
323-
Cache::make()->ttl(Ttl::MONTH);
324320
```
325321

326322
##### As Seconds

UPGRADE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ This means that the `DragonCode\Contracts\*` contracts will no longer be working
3030
### Replaces Namespaces
3131

3232
- `DragonCode\Contracts\Support\Arrayable` replace with `Illuminate\Contracts\Support\Arrayable`
33+
34+
## Low Impact Changes
35+
36+
### TTL Time Constants
37+
38+
Constants `DAY`, `MONTH` and `WEEK` was deleted from `DragonCode\Cache\Support\Ttl` class.

src/Support/Ttl.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ class Ttl
1818
use Call;
1919
use Has;
2020

21-
/** @deprecated */
22-
public const DAY = 60 * 24;
23-
24-
public const MONTH = 60 * 24 * 30;
25-
public const WEEK = 60 * 24 * 7;
26-
2721
protected int $default = 3600;
2822

2923
public function fromMinutes($minutes): int

0 commit comments

Comments
 (0)