Skip to content

Commit

Permalink
Add an example return value
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Aug 1, 2024
1 parent 818f939 commit 2471dfa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/framework/src/Support/Filesystem/MediaFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ public function __construct(string $path)
$this->hash = $this->findHash();
}

/** @return array<string> Array of filenames relative to the _media/ directory */
/**
* @return array<string> Array of filenames relative to the _media/ directory
*
* @example `['app.css', 'images/logo.svg']`
*/
public static function files(): array
{
return static::all()->keys()->all();
Expand Down

0 comments on commit 2471dfa

Please sign in to comment.