Skip to content

Commit 9c510c4

Browse files
Fixed a reuse error to the temporary file
1 parent 68f8320 commit 9c510c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Services/FilesystemService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class FilesystemService
2525
{
2626
public function __construct(
2727
protected File $file,
28-
protected TemporaryDirectory $directory,
2928
) {}
3029

3130
/**
@@ -109,7 +108,7 @@ protected function cleanTemporaryDirectory(string $filename): void
109108

110109
protected function draftPath(string $filename): string
111110
{
112-
return $this->directory
111+
return (new TemporaryDirectory)
113112
->name($this->temporaryFilename($filename))
114113
->create()
115114
->path((string) microtime(true));

0 commit comments

Comments
 (0)