Remove unnecessary condition;
This commit is contained in:
parent
7b933ababf
commit
f09f0ae7ba
@ -157,9 +157,7 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
|
||||
|
||||
if ($event->hasResponse()) {
|
||||
$response = $event->getResponse();
|
||||
}
|
||||
|
||||
if (!$response instanceof Response) {
|
||||
} else {
|
||||
$msg = sprintf('The controller must return a response (%s given).', $this->varToString($response));
|
||||
|
||||
// the user may have forgotten to return something
|
||||
|
Reference in New Issue
Block a user