<?php

class JsonPView extends JsonView
{
    /** @var callable */
    protected $_callback;

    public function __construct(callable $callback)
    {
        $this->_callback = $callback;
        parent::__construct();
    }

    public function render($content)
    {
        $this->setHeader('Content-Type', 'text/javascript; charset=utf8');

        return parent::render($content);
    }

    public function buildOutput($content)
    {
        return $this->_callback . '(' . parent::buildOutput($content) . ');';
    }
}

<?php

class JsonPView extends JsonView
{
    /** @var string */
    protected $_callback;

    public function __construct($callback)
    {
        $this->_callback = $callback;
        parent::__construct();
    }

    public function render($content)
    {
        $this->setHeader('Content-Type', 'text/javascript; charset=utf8');

        return parent::render($content);
    }

    public function buildOutput($content)
    {
        return $this->_callback . '(' . parent::buildOutput($content) . ');';
    }
}

Reset type for `$callback` var since it's not really a callback
Reset type for `$callback` var since it's not really a callback

RequestTest treats it as a string, so we'll treat it as a string here,
too.
