<?php

namespace hiapi\Core\Console\Formatter;

use Lcobucci\ContentNegotiation\Formatter\ContentOnly;

class Php extends ContentOnly
{
    public function formatContent($content, $attributes = []): string
    {
        return var_export($content, true);
    }
}

<?php

namespace hiapi\Core\Console\Formatter;

use Exception;
use Lcobucci\ContentNegotiation\Formatter\ContentOnly;

class Php extends ContentOnly
{
    public function formatContent($content, $attributes = []): string
    {
        if ($content instanceof Exception) {
            throw $content;
        }

        return var_export($content, true);
    }
}

Fix request to `index.php` in URL
Fix request to `index.php` in URL
