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);