Skip to content

Commit a4435a0

Browse files
authored
Add elelemnt type to return array in Filesystem (#55031)
1 parent 171cb60 commit a4435a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Illuminate/Contracts/Filesystem/Filesystem.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ public function lastModified($path);
173173
*
174174
* @param string|null $directory
175175
* @param bool $recursive
176-
* @return array
176+
* @return array<string>
177177
*/
178178
public function files($directory = null, $recursive = false);
179179

180180
/**
181181
* Get all of the files from the given directory (recursive).
182182
*
183183
* @param string|null $directory
184-
* @return array
184+
* @return array<string>
185185
*/
186186
public function allFiles($directory = null);
187187

@@ -190,15 +190,15 @@ public function allFiles($directory = null);
190190
*
191191
* @param string|null $directory
192192
* @param bool $recursive
193-
* @return array
193+
* @return array<string>
194194
*/
195195
public function directories($directory = null, $recursive = false);
196196

197197
/**
198198
* Get all (recursive) of the directories within a given directory.
199199
*
200200
* @param string|null $directory
201-
* @return array
201+
* @return array<string>
202202
*/
203203
public function allDirectories($directory = null);
204204

0 commit comments

Comments
 (0)