The method getHeaders() does not exist on Basster\LazyResponseBund...e\LazyResponseInterface. Since it exists in all sub-types, consider adding an abstract or default implementation to Basster\LazyResponseBund...e\LazyResponseInterface.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
36
return new Response($this->twig->render($controllerResult->getTemplate(), $controllerResult->getData()), $controllerResult->getStatusCode(), $controllerResult->/** @scrutinizer ignore-call */ getHeaders());
The method getTemplate() does not exist on Basster\LazyResponseBund...e\LazyResponseInterface. It seems like you code against a sub-type of Basster\LazyResponseBund...e\LazyResponseInterface such as Basster\LazyResponseBund...sponse\TemplateResponse.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
36
return new Response($this->twig->render($controllerResult->/** @scrutinizer ignore-call */ getTemplate(), $controllerResult->getData()), $controllerResult->getStatusCode(), $controllerResult->getHeaders());
The method getData() does not exist on Basster\LazyResponseBund...e\LazyResponseInterface. It seems like you code against a sub-type of Basster\LazyResponseBund...e\LazyResponseInterface such as Basster\LazyResponseBund...sponse\TemplateResponse or Basster\LazyResponseBund...e\JsonSerializeResponse.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
36
return new Response($this->twig->render($controllerResult->getTemplate(), $controllerResult->/** @scrutinizer ignore-call */ getData()), $controllerResult->getStatusCode(), $controllerResult->getHeaders());
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.