Skip to content

Commit

Permalink
Specify collection key generics
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 28, 2023
1 parent ec1ccc5 commit 9750ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/framework/src/Facades/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function relativePath(string $path): string
*
* @param string $pattern
* @param int $flags
* @return \Illuminate\Support\Collection<string>
* @return \Illuminate\Support\Collection<int, string>
*/
public static function smartGlob(string $pattern, int $flags = 0): Collection
{
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/src/Foundation/Kernel/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function unlinkIfExists(string $path): bool
return false;
}

/** @return \Illuminate\Support\Collection<string> */
/** @return \Illuminate\Support\Collection<int, string> */
public function smartGlob(string $pattern, int $flags = 0): Collection
{
return collect(\Hyde\Facades\Filesystem::glob($pattern, $flags))
Expand Down

0 comments on commit 9750ee5

Please sign in to comment.