Ver Fonte

更新参数类型

laradocs há 3 anos atrás
pai
commit
0761dfce83
1 ficheiros alterados com 2 adições e 2 exclusões
  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')) {
     /**
-     * @param  string|null  $path
+     * @param  string  $path
      * @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');