src/DdvUtil/Laravel/Proxy/Traits/Parameters.php
public function toArray()
    {
        $res = array();
        $this->mapParameters(function ($name, &$value, $parameter) use (&$res) {
            $res[$name] = $value;
        });
        return $res;
    }
public function toArray()
    {
        $res = array();
        $this->mapParameters(function ($name, &$value, $parameter) use (&$res) {
            $res[$name] = $value;
        });
        return $res;
    }
把参数转数组
@return array