Skip to content

Commit

Permalink
Support for PHP 8.4 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgivoni authored Feb 11, 2025
1 parent 577e843 commit f03b8ac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
job1:
strategy:
matrix:
php_version: ["8.1", "8.2", "8.3"]
php_version: ["8.1", "8.2", "8.3", "8.4"]
name: PhpStan static analyzer ${{ matrix.php_version }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
job2:
strategy:
matrix:
php_version: ["8.1", "8.2", "8.3"]
php_version: ["8.1", "8.2", "8.3", "8.4"]
name: PhpUnit unit tests ${{ matrix.php_version }}
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"keywords": [
"flysystem",
"flysystem 3",
"filesystem",
"cache",
"adapter",
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.2'

name: flysystem-cache-adapter

services:
Expand Down
7 changes: 2 additions & 5 deletions tests/GetChecksum_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ public static function dataProvider(): iterable
*/
public function with_mock_aws_adapter(string $path, string $expectedChecksum): void
{
/** @var AwsS3V3Adapter&MockInterface $awsAdapter */
$awsAdapter = Mockery::mock(AwsS3V3Adapter::class);
$awsAdapter->shouldReceive([
'checksum' => 'my-aws-etag',
]);
$awsAdapter = $this->createMock(AwsS3V3Adapter::class);
$awsAdapter->method('checksum')->with('non-cached-file')->willReturn('my-aws-etag');

$this->cacheAdapter = new CacheAdapter($awsAdapter, $this->cachePool);

Expand Down

0 comments on commit f03b8ac

Please sign in to comment.