src/Command/ScriptCommand.php
public function setArguments(array $arguments)
    {
        if (($numkeys = $this->getKeysCount()) && $numkeys < 0) {
            $numkeys = count($arguments) + $numkeys;
        }

        $arguments = array_merge(array($this->getScriptHash(), (int) $numkeys), $arguments);

        parent::setArguments($arguments);
    }
public function setArguments(array $arguments)
    {
        if (($numkeys = $this->getKeysCount()) && $numkeys < 0) {
            $numkeys = count($arguments) + $numkeys;
        }

        $arguments = array_merge(array($this->getScriptHash(), (int) $numkeys), $arguments);

        parent::setArguments($arguments);
    }
{@inheritdoc}