Skip to content

Commit f49493e

Browse files
committed
phpdoc
1 parent e85306e commit f49493e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Models/Media.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,18 @@ public function storeFile(
134134
(is_string($file) && filter_var($file, FILTER_VALIDATE_URL)) ||
135135
! is_string($file)
136136
) {
137-
return TemporaryDirectory::callback(function ($temporaryDirectory) use ($file, $destination, $name, $disk, $before) {
137+
/** @var static $value */
138+
$value = TemporaryDirectory::callback(function ($temporaryDirectory) use ($file, $destination, $name, $disk, $before) {
139+
138140
$path = FileDownloader::download(
139141
file: $file,
140142
destination: $temporaryDirectory->path()
141143
);
142144

143145
return $this->storeFileFromHttpFile(new HttpFile($path), $destination, $name, $disk, $before);
144146
});
147+
148+
return $value;
145149
}
146150

147151
return $this->storeFileFromHttpFile(new HttpFile($file), $destination, $name, $disk, $before);

0 commit comments

Comments
 (0)