改进App类的bindParams方法

This commit is contained in:
thinkphp
2016-09-02 14:24:02 +08:00
parent 7d9b65e63b
commit 8cccde2062

View File

@@ -242,6 +242,7 @@ class App
{
$args = [];
// 判断数组类型 数字数组时按顺序绑定参数
reset($vars);
$type = key($vars) === 0 ? 1 : 0;
if ($reflect->getNumberOfParameters() > 0) {
$params = $reflect->getParameters();