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
Class src/Request.php is not comfortable to use by Laminas\Stdlib\RequestInterface interface.
Real object has more public methods in comparison with RequestInterface - for method, uri and others
Do you have any plans to use common PSR interfaces like RequestInterface?
It will be more comfortable to use in this situation.
Bug Report
Summary
Hi!
Class
src/Request.php
is not comfortable to use byLaminas\Stdlib\RequestInterface
interface.Real object has more public methods in comparison with RequestInterface - for method, uri and others
Do you have any plans to use common PSR interfaces like RequestInterface?
It will be more comfortable to use in this situation.
Current behavior
In code you should use Request class as dependency instead of RequestInterface
How to reproduce
Try to use
\Laminas\Mvc\Controller\AbstractController::getRequest()
and receive uri bygetUri()
on it and check code by phpstanExpected behavior
RequestInterface is suitable with PSR-7
The text was updated successfully, but these errors were encountered: