File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Server{
2828 * @return mixed
2929 * The value of the configuration option, or null if it doesn't exist
3030 */
31- static public function config ($ key , $ default = null , string $ base_folder = null )
31+ static public function config ($ key , $ default = null , string $ base_folder = ' config ' )
3232 {
3333 // Convert the key to an array
3434 $ parts = explode ('. ' , $ key );
Original file line number Diff line number Diff line change @@ -176,16 +176,12 @@ function autoload_register(string|array $directory)
176176 * @param mixed $default
177177 * [optional] The default value to return if the configuration option is not found
178178 *
179- * @param string $base_folder
180- * [optional] Custom base folder after the base_path()
181- * - Default base for config() is 'config' folder.
182- *
183179 * @return mixed
184180 * The value of the configuration option, or null if it doesn't exist
185181 */
186- function config ($ key , $ default = null , ? string $ base_folder = ' config ' )
182+ function config ($ key , $ default = null )
187183 {
188- return server ()->config ($ key , $ default, $ base_folder );
184+ return server ()->config ($ key , $ default );
189185 }
190186}
191187
You can’t perform that action at this time.
0 commit comments