修正一些存在的警告错误

This commit is contained in:
thinkphp
2016-02-02 15:15:44 +08:00
parent 78718c7739
commit 8ec6835dca
12 changed files with 30 additions and 22 deletions

View File

@@ -37,7 +37,7 @@ class Socket
* @param array $config 缓存参数
* @access public
*/
public function __construct($config = [])
public function __construct(array $config = [])
{
if (!empty($config)) {
$this->config = array_merge($this->config, $config);
@@ -48,7 +48,7 @@ class Socket
}
}
public function save($logs = [])
public function save(array $logs = [])
{
if (!$this->check()) {
return;