src/DdvUtil/Laravel/Proxy/Traits/Parameters.php
public function getReflectionParameters()
    {
        if (!empty($this->reflectionParameters)) {
            return $this->reflectionParameters;
        }
        if (is_object($this->handler) && is_callable($this->handler)) {
            if ($this->handler instanceof Closure) {
                $this->reflectionParameters = (new ReflectionFunction($this->handler))->getParameters();
            }
        } elseif (is_string($this->handler)) {
            if (function_exists($this->handler)) {
                $this->reflectionParameters = (new ReflectionFunction($this->handler))->getParameters();
            } elseif (strpos($this->handler, '::') !== false) {
                list($className, $method) = explode('::', $this->handler, 2);
                if (method_exists($className, $method)) {
                    $this->reflectionParameters = (new ReflectionMethod($className, $method))->getParameters();
                }
            }
        } elseif (is_array($this->handler) && count($this->handler) === 2 && method_exists($this->handler[0], $this->handler[1])) {
            $this->reflectionParameters = (new ReflectionMethod($this->handler[0], $this->handler[1]))->getParameters();
        }
        return array();
    }
public function getReflectionParameters()
    {
        if (!empty($this->reflectionParameters)) {
            return $this->reflectionParameters;
        }
        if (is_object($this->handler) && is_callable($this->handler)) {
            if ($this->handler instanceof Closure) {
                $this->reflectionParameters = (new ReflectionFunction($this->handler))->getParameters();
            }
        } elseif (is_string($this->handler)) {
            if (function_exists($this->handler)) {
                $this->reflectionParameters = (new ReflectionFunction($this->handler))->getParameters();
            } elseif (strpos($this->handler, '::') !== false) {
                list($className, $method) = explode('::', $this->handler, 2);
                if (method_exists($className, $method)) {
                    $this->reflectionParameters = (new ReflectionMethod($className, $method))->getParameters();
                }
            }
        } elseif (is_array($this->handler) && count($this->handler) === 2 && method_exists($this->handler[0], $this->handler[1])) {
            $this->reflectionParameters = (new ReflectionMethod($this->handler[0], $this->handler[1]))->getParameters();
        }
        return array();
    }
获取一个反射参数数组
@param callable $handler
@return ReflectionParameter[] The parameters, as a ReflectionParameter objects.
@throws ReflectionException