mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-12 12:55:29 +08:00
Update Functions.php
set default to null
This commit is contained in:
parent
ff23e16d59
commit
fcd5b1e193
@ -14,7 +14,7 @@ use Hyperf\Contract\ConfigInterface;
|
||||
use Hyperf\Utils\ApplicationContext;
|
||||
|
||||
if (! function_exists('config')) {
|
||||
function config(string $key, $default)
|
||||
function config(string $key, $default = null)
|
||||
{
|
||||
if (! ApplicationContext::hasContainer()) {
|
||||
throw new \RuntimeException('The application context lacks the container.');
|
||||
|
Loading…
Reference in New Issue
Block a user