修正几处BUG

This commit is contained in:
thinkphp
2016-06-28 17:05:47 +08:00
parent 25ad8a61f3
commit 802ead16a8
3 changed files with 3 additions and 5 deletions

View File

@@ -162,7 +162,7 @@ class App
* @param array $params 参数
* @return void
*/
public static function dispatch($dispath, $type = 'module', $params = [])
public static function dispatch($dispatch, $type = 'module', $params = [])
{
self::$dispatch = ['type' => $type, $type => $dispatch, 'params' => $params];
}

View File

@@ -29,9 +29,9 @@ class File extends SplFileObject
// 上传文件信息
protected $info;
public function __construct($filename, $mode = 'r', $useIncludePath = false, $context = null)
public function __construct($filename, $mode = 'r')
{
parent::__construct($filename, $mode, $useIncludePath, $context);
parent::__construct($filename, $mode);
$this->filename = $this->getRealPath();
}

View File

@@ -138,8 +138,6 @@ abstract class Builder
{
if (is_string($value)) {
$value = strpos($value, ':') === 0 && $this->query->isBind(substr($value, 1)) ? $value : $this->connection->quote($value);
} elseif (is_array($value) && is_string($value[0]) && strtolower($value[0]) == 'exp') {
$value = $value[1];
} elseif (is_array($value)) {
$value = array_map([$this, 'parseValue'], $value);
} elseif (is_bool($value)) {