src/Reflection/ReflectionFunctionAbstract.php
public function getShortName() : string
    {
        if ($this->node instanceof Node\Expr\Closure) {
            return self::CLOSURE_NAME;
        }

        return $this->node->name->name;
    }
public function getShortName() : string
    {
        if ($this->node instanceof Node\Expr\Closure) {
            return self::CLOSURE_NAME;
        }

        return $this->node->name->name;
    }
Get the "short" name of the function (e.g. for A\B\foo, this will return
"foo").