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
This is the official interface declaration from psr/http-factory
namespacePsr\Http\Message;
interfaceRequestFactoryInterface
{
/** * Create a new request. * * @param string $method The HTTP method associated with the request. * @param UriInterface|string $uri The URI associated with the request. If * the value is a string, the factory MUST create a UriInterface * instance based on it. * * @return RequestInterface */publicfunctioncreateRequest(string$method, $uri): RequestInterface;
}
As you can is in the comment for $uri parameter it can be either string or UriInterface. Your implementation assumes string only. I think it should be fixed.
The text was updated successfully, but these errors were encountered:
This is the official interface declaration from psr/http-factory
As you can is in the comment for $uri parameter it can be either string or UriInterface. Your implementation assumes string only. I think it should be fixed.
The text was updated successfully, but these errors were encountered: