Skip to content

Commit

Permalink
Fix Psalm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Mar 9, 2024
1 parent 16eb447 commit b31ec7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public function __construct(
private readonly KeyedMutex $mutex,
?Filesystem $filesystem = null,
) {
$this->filesystem = $filesystem ?? filesystem();
$filesystem ??= filesystem();
$this->filesystem = $filesystem;
$this->directory = $directory = \rtrim($directory, "/\\");

$gcWatcher = static function () use ($directory, $mutex, $filesystem): void {
Expand Down

0 comments on commit b31ec7a

Please sign in to comment.