classes/DefaultArgumentRemoverReturnTypes.php
private function removeDefaultArguments(Invocation\StaticInvocation $invocation)
    {
        $remover = function () {
            MockFunctionGenerator::removeDefaultArguments($this->parameters);
        };

        $remover->bindTo($invocation, Invocation\StaticInvocation::class)();
    }
private function removeDefaultArguments(Invocation\StaticInvocation $invocation)
    {
        $remover = function () {
            MockFunctionGenerator::removeDefaultArguments($this->parameters);
        };

        $remover->bindTo($invocation, Invocation\StaticInvocation::class)();
    }
Remove default arguments from StaticInvocation or its children (hack)

@SuppressWarnings(PHPMD)