Skip to content

Commit ba4d44d

Browse files
authored
Merge pull request #2030 from edgarsn/helpers_type_hinting
Added missing type hinting for helpers.php
2 parents 9d53ad7 + e63ce96 commit ba4d44d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Support\Facades\Vite as ViteFacade;
55

66
if (! function_exists('module_path')) {
7-
function module_path($name, $path = '')
7+
function module_path(string $name, string $path = ''): string
88
{
99
$module = app('modules')->find($name);
1010

@@ -36,7 +36,7 @@ function public_path(string $path = ''): string
3636
/**
3737
* support for vite
3838
*/
39-
function module_vite($module, $asset, $hotFilePath = null): Vite
39+
function module_vite(string $module, string $asset, ?string $hotFilePath = null): Vite
4040
{
4141
return ViteFacade::useHotFile($hotFilePath ?: storage_path('vite.hot'))->useBuildDirectory($module)->withEntryPoints([$asset]);
4242
}

0 commit comments

Comments
 (0)