File tree 2 files changed +38
-0
lines changed
2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ parameters:
2
2
level: max
3
3
checkMissingIterableValueType: false
4
4
treatPhpDocTypesAsCertain: false
5
+ stubFiles:
6
+ - stubs/RequestFactory.php
5
7
paths:
6
8
- src
7
9
ignoreErrors:
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Http \Message ;
4
+
5
+ use Psr \Http \Message \UriInterface ;
6
+ use Psr \Http \Message \RequestInterface ;
7
+ use Psr \Http \Message \StreamInterface ;
8
+
9
+ /**
10
+ * Factory for PSR-7 Request.
11
+ *
12
+ * @author Márk Sági-Kazár <[email protected] >
13
+ *
14
+ * @deprecated since version 1.1, use Psr\Http\Message\RequestFactoryInterface instead.
15
+ */
16
+ interface RequestFactory
17
+ {
18
+ /**
19
+ * Creates a new PSR-7 request.
20
+ *
21
+ * @param string $method
22
+ * @param string|UriInterface $uri
23
+ * @param array $headers
24
+ * @param resource|string|StreamInterface|null $body
25
+ * @param string $protocolVersion
26
+ *
27
+ * @return RequestInterface
28
+ */
29
+ public function createRequest (
30
+ $ method ,
31
+ $ uri ,
32
+ array $ headers = [],
33
+ $ body = null ,
34
+ $ protocolVersion = '1.1 '
35
+ );
36
+ }
You can’t perform that action at this time.
0 commit comments