Skip to content

Commit

Permalink
fix psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Jul 18, 2021
1 parent 40cca53 commit 75d2d60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Adapter/CacheOpenedFiles.php
Expand Up @@ -68,7 +68,6 @@ public function remove(Name $file): void
public function all(): Set
{
$all = $this->filesystem->all();
/** @var Map<string, File> */
$this->files = $all->toMapOf(
'string',
File::class,
Expand Down
2 changes: 1 addition & 1 deletion src/Adapter/Lazy.php
Expand Up @@ -89,7 +89,7 @@ public function persist(): void
{
$this
->toAdd
->foreach(function(string $name, File $file) {
->foreach(function(string $_, File $file) {
$this->adapter->add($file);
});
$this->toAdd = $this->toAdd->clear();
Expand Down

0 comments on commit 75d2d60

Please sign in to comment.