Closed Eugentis closed 1 year ago
This package is considered feature-complete, and is now in security-only maintenance mode, following a decision by the Technical Steering Committee. If you have a security issue, please follow our security reporting guidelines. If you wish to take on the role of maintainer, please nominate yourself
You can continue using laminas/laminas-http safely. Its successor will be PSR-7 in a later revision of laminas/laminas-mvc.
Not for laminas/laminas-http
: use a PSR-18 HTTP client implementation for that instead :)
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 othersDo 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