Skip to content

Commit 1ad3cd7

Browse files
Drop Laravel 6-9 and PHP 8.0-8.1 support
1 parent c76ad07 commit 1ad3cd7

File tree

4 files changed

+20
-46
lines changed

4 files changed

+20
-46
lines changed

.github/workflows/phpunit.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,8 @@ jobs:
99
strategy:
1010
fail-fast: true
1111
matrix:
12-
php: [ "8.0", "8.1", "8.2", "8.3" ]
13-
laravel: [ "6.0", "7.0", "8.0", "9.0", "10.0", "11.0" ]
14-
exclude:
15-
- laravel: "6.0"
16-
php: "8.1"
17-
18-
- laravel: "6.0"
19-
php: "8.2"
20-
21-
- laravel: "6.0"
22-
php: "8.3"
23-
24-
- laravel: "7.0"
25-
php: "8.1"
26-
27-
- laravel: "7.0"
28-
php: "8.2"
29-
30-
- laravel: "7.0"
31-
php: "8.3"
32-
33-
- laravel: "9.0"
34-
php: "8.3"
35-
36-
- laravel: "10.0"
37-
php: "8.0"
38-
39-
- laravel: "11.0"
40-
php: "8.0"
41-
42-
- laravel: "11.0"
43-
php: "8.1"
12+
php: [ "8.2", "8.3" ]
13+
laravel: [ "10.0", "11.0" ]
4414

4515
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
4616

UPGRADE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
Laravel Cache now required PHP 8.2.0 or greater.
88

9+
### Laravel 10+ Required
10+
11+
Laravel Cache now required Laravel Framework 10 or greater.
12+
913
### Composer Dependencies
1014

1115
You should update the following dependency in your application's composer.json file:

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
}
3434
],
3535
"require": {
36-
"php": "^8.0",
36+
"php": "^8.2",
3737
"dragon-code/support": "^6.11.3",
38-
"illuminate/contracts": "^10.0||^11.0",
39-
"illuminate/support": ">=6.0 <12.0"
38+
"illuminate/contracts": "^10.0 || ^11.0",
39+
"illuminate/support": "^10.0 || ^11.0"
4040
},
4141
"require-dev": {
4242
"nesbot/carbon": "^2.62",
43-
"orchestra/testbench": ">=4.0 <10.0",
44-
"phpunit/phpunit": "^8.5 || ^9.6 || ^10.0"
43+
"orchestra/testbench": "^9.0 || ^10.0",
44+
"phpunit/phpunit": "^10.0"
4545
},
4646
"conflict": {
4747
"andrey-helldar/cache": "*"
@@ -50,12 +50,12 @@
5050
"prefer-stable": true,
5151
"autoload": {
5252
"psr-4": {
53-
"DragonCode\\Cache\\": "src"
53+
"DragonCode\\Cache\\": "src/"
5454
}
5555
},
5656
"autoload-dev": {
5757
"psr-4": {
58-
"Tests\\": "tests"
58+
"Tests\\": "tests/"
5959
}
6060
},
6161
"config": {

tests/Support/TtlTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818

1919
class TtlTest extends TestCase
2020
{
21-
public function testString()
21+
public function testString(): void
2222
{
2323
$this->assertSame(600, Ttl::fromMinutes('10'));
2424
$this->assertSame(10, Ttl::fromSeconds('10'));
2525
}
2626

27-
public function testInteger()
27+
public function testInteger(): void
2828
{
2929
$this->assertSame(600, Ttl::fromMinutes(10));
3030
$this->assertSame(10, Ttl::fromSeconds(10));
3131
}
3232

33-
public function testCarbon()
33+
public function testCarbon(): void
3434
{
3535
$ttl = Carbon::now()->addDay();
3636

@@ -40,7 +40,7 @@ public function testCarbon()
4040
$this->assertSame($expected, Ttl::fromSeconds($ttl));
4141
}
4242

43-
public function testDateTimeInterface()
43+
public function testDateTimeInterface(): void
4444
{
4545
$ttl = new DateTime('tomorrow');
4646

@@ -50,7 +50,7 @@ public function testDateTimeInterface()
5050
$this->assertSame($expected, Ttl::fromSeconds($ttl));
5151
}
5252

53-
public function testClosure()
53+
public function testClosure(): void
5454
{
5555
$ttl = function () {
5656
return $this->ttl;
@@ -60,7 +60,7 @@ public function testClosure()
6060
$this->assertSame(60, Ttl::fromSeconds($ttl));
6161
}
6262

63-
public function testObjectAsString()
63+
public function testObjectAsString(): void
6464
{
6565
$this->assertSame(18000, Ttl::fromMinutes(CustomObject::class));
6666
$this->assertSame(300, Ttl::fromSeconds(CustomObject::class));
@@ -78,7 +78,7 @@ public function testObjectAsString()
7878
$this->assertSame(3600, Ttl::fromSeconds('unknown'));
7979
}
8080

81-
public function testObjectAsObject()
81+
public function testObjectAsObject(): void
8282
{
8383
$this->assertSame(18000, Ttl::fromMinutes(new CustomObject()));
8484
$this->assertSame(300, Ttl::fromSeconds(new CustomObject()));

0 commit comments

Comments
 (0)