src/Leevel/Database/Connect.php
protected function bindParams(array $bindParams = []): void
    {
        foreach ($bindParams as $key => $val) {
            $key = is_numeric($key) ? $key + 1 : ':'.$key;

            if (is_array($val)) {
                $param = $val[1];
                $val = $val[0];
            } else {
                $param = PDO::PARAM_STR;
            }

            $this->pdoStatement->bindValue($key, $val, $param);
        }
    }
protected function bindParams(array $bindParams = []): void
    {
        foreach ($bindParams as $key => $val) {
            $key = is_numeric($key) ? $key + 1 : ':'.$key;

            if (is_array($val)) {
                $param = $val[1];
                $val = $val[0];
            } else {
                $param = PDO::PARAM_STR;
            }

            $this->pdoStatement->bindValue($key, $val, $param);
        }
    }
pdo 参数绑定.

@param array $bindParams