You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pre-defined method AbstractActionController::indexAction states that it can only return ViewModel.
In Projects which implement their own FooController::indexAction, static analysis complains about an invalid return type if e.g. a Laminas\Http\Response is returned.
Current behavior
Static code analysis complains about invalid return type.
Return type
(Laminas\Http\Response) of method
FooController::indexAction() should be
compatible with return type (Laminas\View\Model\ViewModel) of method
Laminas\Mvc\Controller\AbstractActionController::indexAction()
Expected behavior
No errors.
The text was updated successfully, but these errors were encountered:
Bug Report (non-critical)
Summary
The pre-defined method
AbstractActionController::indexAction
states that it can only returnViewModel
.In Projects which implement their own
FooController::indexAction
, static analysis complains about an invalid return type if e.g. aLaminas\Http\Response
is returned.Current behavior
Static code analysis complains about invalid return type.
How to reproduce
Expected behavior
No errors.
The text was updated successfully, but these errors were encountered: