Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Jan 9, 2025
1 parent 2f2cb83 commit ada34f0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Workbench.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public static function laravelPath(array|string $path = ''): string
*/
public static function packagePath(array|string $path = ''): string
{
return package_path(
...Arr::wrap(\func_num_args() > 1 ? \func_get_args() : $path)
);
$path = Arr::wrap(\func_num_args() > 1 ? \func_get_args() : $path);

/** @phpstan-ignore argument.named */
return package_path(...$path);
}

/**
Expand All @@ -62,9 +63,10 @@ public static function packagePath(array|string $path = ''): string
*/
public static function path(array|string $path = ''): string
{
return workbench_path(
...Arr::wrap(\func_num_args() > 1 ? \func_get_args() : $path)
);
$path = Arr::wrap(\func_num_args() > 1 ? \func_get_args() : $path);

/** @phpstan-ignore argument.named */
return workbench_path(...$path);
}

/**
Expand Down

0 comments on commit ada34f0

Please sign in to comment.