Skip to content

Commit 25c86ed

Browse files
committed
Drop php 8.1 version support
1 parent ed15187 commit 25c86ed

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

.github/workflows/phpunit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
php: [8.1, 8.2, 8.3, 8.4]
15+
php: [8.2, 8.3, 8.4]
1616

1717
name: PHP ${{ matrix.php }}
1818

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"type": "library",
66
"require": {
7-
"php": "^8.1",
7+
"php": "^8.2",
88
"illuminate/http": "^11.35 || ^12.0",
99
"illuminate/support": "^11.35 || ^12.0",
1010
"league/flysystem": "^3.0"

rector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__DIR__.'/tests',
1111
])
1212
// uncomment to reach your current PHP version
13-
->withPhpSets(php81: true)
13+
->withPhpSets(php82: true)
1414
->withSets([
1515
\Rector\Set\ValueObject\SetList::CODE_QUALITY,
1616
\Rector\Set\ValueObject\SetList::CODING_STYLE,

tests/Feature/CopyMoveOperationsTest.php

+5-7
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,11 @@ public function it_moves_file(): void
6969
$adapter->move('source-file.txt', 'destination-file.txt', new Config());
7070

7171
// Assert the HTTP request was made
72-
Http::assertSent(static function (Request $request): bool {
73-
return $request->method() === 'POST' &&
74-
$request->url() === self::TEST_ENDPOINT.'/storage/v1/object/move' &&
75-
$request->data()['bucketId'] === self::TEST_BUCKET &&
76-
$request->data()['sourceKey'] === 'source-file.txt' &&
77-
$request->data()['destinationKey'] === 'destination-file.txt';
78-
});
72+
Http::assertSent(static fn(Request $request): bool => $request->method() === 'POST' &&
73+
$request->url() === self::TEST_ENDPOINT.'/storage/v1/object/move' &&
74+
$request->data()['bucketId'] === self::TEST_BUCKET &&
75+
$request->data()['sourceKey'] === 'source-file.txt' &&
76+
$request->data()['destinationKey'] === 'destination-file.txt');
7977
}
8078

8179
#[Test]

0 commit comments

Comments
 (0)