Skip to content

Commit

Permalink
allow to use innmind/filesystem 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Dec 18, 2022
1 parent 4fd9eeb commit 11fa765
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog

## 5.3.0 - 2022-12-18

### Added

- Support for `innmind/filesystem:~6.0`

## 5.2.0 - 2022-03-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -18,7 +18,7 @@
"php": "~8.1",
"innmind/url": "~4.0",
"innmind/immutable": "~4.0",
"innmind/filesystem": "~5.0",
"innmind/filesystem": "~5.2|~6.0",
"innmind/time-continuum": "~3.0",
"innmind/stream": "~3.0"
},
Expand Down
7 changes: 6 additions & 1 deletion src/Factory/Files/FilesFactory.php
Expand Up @@ -55,7 +55,10 @@ public static function default(): self

private function map(array $content): array|Either
{
/** @psalm-suppress MixedArgument */
/**
* @psalm-suppress MixedArgument
* @psalm-suppress ArgumentTypeCoercion
*/
if (\is_string($content['name'])) {
return $this->buildFile(
$content['name'],
Expand Down Expand Up @@ -85,6 +88,8 @@ private function map(array $content): array|Either
}

/**
* @param non-empty-string $name
*
* @return Either<Status, File>
*/
private function buildFile(
Expand Down
2 changes: 1 addition & 1 deletion src/ResponseSender.php
Expand Up @@ -15,7 +15,7 @@
};
use Innmind\TimeContinuum\Clock;
use Innmind\Filesystem\{
Adapter\Chunk,
Chunk,
File,
};
use Innmind\Immutable\{
Expand Down

0 comments on commit 11fa765

Please sign in to comment.