Skip to content

Commit d7c6b64

Browse files
author
Fredrick Peter
committed
helpers update
1 parent a6ae020 commit d7c6b64

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

helpers.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)