Skip to content

Commit 7b91c09

Browse files
Merge pull request #137
Updated exception path and annotations in `FilesystemService`
2 parents 7ba6b9f + 6b7ba1d commit 7b91c09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Services/FilesystemService.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ public function release($resource, string $path): void // @pest-ignore-type
9191
$this->file->move($temp, $path);
9292

9393
$this->cleanTemporaryDirectory($temp);
94+
// @codeCoverageIgnoreStart
9495
} catch (Throwable $e) {
95-
throw new CloseFeedException($path, $e);
96+
throw new CloseFeedException($temp, $e);
9697
}
98+
// @codeCoverageIgnoreEnd
9799
}
98100

99101
/**
@@ -137,7 +139,7 @@ protected function temporaryFilename(string $filename): string
137139
/**
138140
* @param resource $file
139141
*/
140-
protected function getMetaPath($file): string
142+
protected function getMetaPath($file): string // @pest-ignore-type
141143
{
142144
$meta = stream_get_meta_data($file);
143145

0 commit comments

Comments
 (0)