mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
添加方法参数变量约束
This commit is contained in:
@@ -29,7 +29,7 @@ class Cache
|
||||
* @param array $options 配置数组
|
||||
* @return object
|
||||
*/
|
||||
public static function connect($options = [])
|
||||
public static function connect(array $options = [])
|
||||
{
|
||||
$type = !empty($options['type']) ? $options['type'] : 'File';
|
||||
$class = (!empty($options['namespace']) ? $options['namespace'] : '\\think\\cache\\driver\\') . ucwords($type);
|
||||
|
||||
Reference in New Issue
Block a user