When 'null' is returned, ResponseRenderer::response() is called, so call it early to always return a Response object. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
14 lines
232 B
PHP
14 lines
232 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Controllers;
|
|
|
|
use PhpMyAdmin\Http\Response;
|
|
use PhpMyAdmin\Http\ServerRequest;
|
|
|
|
interface InvocableController
|
|
{
|
|
public function __invoke(ServerRequest $request): Response;
|
|
}
|