Browse Source

更新参数类型

laradocs 3 years ago
parent
commit
0761dfce83
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Support/helpers.php

+ 2 - 2
src/Support/helpers.php

@@ -421,10 +421,10 @@ if (! function_exists('admin_api_route_name')) {
 
 
 if (! function_exists('admin_extension_path')) {
 if (! function_exists('admin_extension_path')) {
     /**
     /**
-     * @param  string|null  $path
+     * @param  string  $path
      * @return string
      * @return string
      */
      */
-    function admin_extension_path(?string $path = null)
+    function admin_extension_path(string $path = '')
     {
     {
         $dir = rtrim(config('admin.extension.dir'), '/') ?: base_path('dcat-admin-extensions');
         $dir = rtrim(config('admin.extension.dir'), '/') ?: base_path('dcat-admin-extensions');