From 6b7ba1d1e820788fe1fb6ac87d1f76679b5eccef Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Mon, 6 Oct 2025 19:44:55 +0300 Subject: [PATCH] Updated exception path and annotations in `FilesystemService` --- src/Services/FilesystemService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Services/FilesystemService.php b/src/Services/FilesystemService.php index 83161c3..37ea3b0 100644 --- a/src/Services/FilesystemService.php +++ b/src/Services/FilesystemService.php @@ -91,9 +91,11 @@ public function release($resource, string $path): void // @pest-ignore-type $this->file->move($temp, $path); $this->cleanTemporaryDirectory($temp); + // @codeCoverageIgnoreStart } catch (Throwable $e) { - throw new CloseFeedException($path, $e); + throw new CloseFeedException($temp, $e); } + // @codeCoverageIgnoreEnd } /** @@ -137,7 +139,7 @@ protected function temporaryFilename(string $filename): string /** * @param resource $file */ - protected function getMetaPath($file): string + protected function getMetaPath($file): string // @pest-ignore-type { $meta = stream_get_meta_data($file);