src/Generator/Parameter/HeaderParameterGenerator.php
public function generateQueryParamStatements($parameter, Expr $queryParamVariable)
    {
        $statements = parent::generateQueryParamStatements($parameter, $queryParamVariable);
        $statements[] = new Expr\MethodCall($queryParamVariable, 'setHeaderParameters', [
            new Node\Arg(new Expr\Array_([new Expr\ArrayItem(new Scalar\String_($parameter->getName()))])),
        ]);

        return $statements;
    }
public function generateQueryParamStatements($parameter, Expr $queryParamVariable)
    {
        $statements = parent::generateQueryParamStatements($parameter, $queryParamVariable);
        $statements[] = new Expr\MethodCall($queryParamVariable, 'setHeaderParameters', [
            new Node\Arg(new Expr\Array_([new Expr\ArrayItem(new Scalar\String_($parameter->getName()))])),
        ]);

        return $statements;
    }
{@inheritdoc}