Skip to content

Commit 197f195

Browse files
k2rnOcramius
authored andcommitted
cleanup file regardless of the stream
Signed-off-by: katsuren <t@k2rn.com>
1 parent 5773e76 commit 197f195

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/UploadedFile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ public function moveTo($targetPath) : void
190190

191191
if ($this->stream instanceof StreamInterface) {
192192
$this->stream->close();
193-
if (is_string($this->file) && file_exists($this->file)) {
194-
unlink($this->file);
195-
}
193+
}
194+
if (is_string($this->file) && file_exists($this->file)) {
195+
unlink($this->file);
196196
}
197197
break;
198198
default:

0 commit comments

Comments
 (0)