You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DirectoryContents.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,14 @@ public function __construct(
30
30
/**
31
31
* Static factory which loads a directory.
32
32
*
33
-
* @param string $dir
33
+
* @param string $directory
34
34
* Directory path without trailing slash.
35
35
*
36
36
* @return static
37
37
*/
38
-
publicstaticfunctionload(string$dir): static {
39
-
assert(!str_ends_with($dir, '/'));
40
-
$iterator = new \RecursiveDirectoryIterator($dir, \FilesystemIterator::SKIP_DOTS|\FilesystemIterator::KEY_AS_FILENAME|\FilesystemIterator::CURRENT_AS_SELF);
$iterator = new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS|\FilesystemIterator::KEY_AS_FILENAME|\FilesystemIterator::CURRENT_AS_SELF);
0 commit comments