Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Services/FilesystemService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down Expand Up @@ -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);

Expand Down
Loading