Skip to content

Commit

Permalink
require filesystem 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Oct 22, 2023
1 parent aaad848 commit b47dad8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.5.0 - 2023-10-22

### Changed

- Requires `innmind/filesystem:~7.0:`

## 1.4.0 - 2023-09-16

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require": {
"php": "~8.2",
"innmind/immutable": "~4.5|~5.0",
"innmind/filesystem": "^5.2|~6.0"
"innmind/filesystem": "~7.0"
},
"autoload": {
"psr-4": {
Expand Down
7 changes: 2 additions & 5 deletions src/Hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

namespace Innmind\Hash;

use Innmind\Filesystem\{
File,
Chunk,
};
use Innmind\Filesystem\File;
use Innmind\Immutable\{
Sequence,
Str,
Expand All @@ -27,7 +24,7 @@ public function ofFile(File $file): Value
public function ofContent(File\Content $content): Value
{
return $this->ofSequence(
(new Chunk)($content),
$content->chunks(),
);
}

Expand Down
1 change: 1 addition & 0 deletions tests/FunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class FunctionalTest extends TestCase
public function testHash()
{
$files = Filesystem::mount(Path::of('fixtures/'))
->root()
->all()
->toList();

Expand Down

0 comments on commit b47dad8

Please sign in to comment.