src/Reflection/ReflectionFunctionAbstract.php
public function getParameters() : array
    {
        $parameters = [];

        foreach ($this->node->params as $paramIndex => $paramNode) {
            $parameters[] = ReflectionParameter::createFromNode(
                $this->reflector,
                $paramNode,
                $this->declaringNamespace,
                $this,
                $paramIndex
            );
        }

        return $parameters;
    }
public function getParameters() : array
    {
        $parameters = [];

        foreach ($this->node->params as $paramIndex => $paramNode) {
            $parameters[] = ReflectionParameter::createFromNode(
                $this->reflector,
                $paramNode,
                $this->declaringNamespace,
                $this,
                $paramIndex
            );
        }

        return $parameters;
    }
Get an array list of the parameters for this method signature, as an
array of ReflectionParameter instances.

@return ReflectionParameter[]