From b31ec7af0cc67aadc75a2a29318695be029cb32a Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sat, 9 Mar 2024 09:39:41 -0600 Subject: [PATCH] Fix Psalm issue --- src/FileCache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FileCache.php b/src/FileCache.php index d69501f..66da94b 100644 --- a/src/FileCache.php +++ b/src/FileCache.php @@ -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 {