Skip to content

Commit

Permalink
Annotate path array generics
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 28, 2023
1 parent cfdc103 commit bc951bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/framework/src/Foundation/Kernel/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public function path(string $path = ''): string
* Get an absolute file path from a supplied relative path.
*
* Input types are matched, meaning that if the input is a string so will the output be.
*
* @param string|array<string> $path
*/
public function pathToAbsolute(string|array $path): string|array
{
Expand Down Expand Up @@ -143,6 +145,8 @@ public function vendorPath(string $path = '', string $package = 'framework'): st

/**
* Touch one or more files in the project's directory.
*
* @param string|array<string> $path
*/
public function touch(string|array $path): bool
{
Expand All @@ -159,6 +163,8 @@ public function touch(string|array $path): bool

/**
* Unlink one or more files in the project's directory.
*
* @param string|array<string> $path
*/
public function unlink(string|array $path): bool
{
Expand Down

0 comments on commit bc951bc

Please sign in to comment.