修正几处因为函数重载时参数与父类参数不同而出现的warn

This commit is contained in:
huangdijia
2015-12-22 13:29:37 +08:00
parent 743bffb381
commit bbf8c03b51
2 changed files with 6 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ class Mongo extends Driver
* @return
* @throws Exception
*/
public function connect($config = '', $linkNum = 0)
public function connect($config = '', $linkNum = 0, $autoConnection = false)
{
if (!isset($this->linkID[$linkNum])) {
if (empty($config)) {
@@ -249,7 +249,7 @@ class Mongo extends Driver
* @return bool
* @throws Exception
*/
public function insertAll($dataList, $options = [])
public function insertAll($dataList, $options = [], $replace = false)
{
if (isset($options['table'])) {
$this->switchCollection($options['table']);