@@ -16,23 +16,23 @@ class NetworkExceptionTest extends ExceptionTestCase {
16
16
*/
17
17
protected function throwDefaultException (): void {
18
18
throw new NetworkException (new class implements RequestInterface{
19
- public function getProtocolVersion () { }
20
- public function withProtocolVersion ($ version ) { }
21
- public function getHeaders () {}
22
- public function hasHeader ($ name ) {}
23
- public function getHeader ($ name ) {}
24
- public function getHeaderLine ($ name ) {}
25
- public function withHeader ($ name , $ value ) {}
26
- public function withAddedHeader ($ name , $ value ) {}
27
- public function withoutHeader ($ name ) {}
28
- public function getBody () {}
29
- public function withBody (StreamInterface $ body ) {}
30
- public function getRequestTarget () {}
31
- public function withRequestTarget ($ requestTarget ) {}
32
- public function getMethod () {}
33
- public function withMethod ($ method ) {}
34
- public function getUri () {}
35
- public function withUri (UriInterface $ uri , $ preserveHost = false ) {}
19
+ public function getProtocolVersion (): string { }
20
+ public function withProtocolVersion ($ version ): \ Psr \ Http \ Message \ MessageInterface { }
21
+ public function getHeaders (): array {}
22
+ public function hasHeader ($ name ): bool {}
23
+ public function getHeader ($ name ): array {}
24
+ public function getHeaderLine ($ name ): string {}
25
+ public function withHeader ($ name , $ value ): \ Psr \ Http \ Message \ MessageInterface {}
26
+ public function withAddedHeader ($ name , $ value ): \ Psr \ Http \ Message \ MessageInterface {}
27
+ public function withoutHeader ($ name ): \ Psr \ Http \ Message \ MessageInterface {}
28
+ public function getBody (): StreamInterface {}
29
+ public function withBody (StreamInterface $ body ): \ Psr \ Http \ Message \ MessageInterface {}
30
+ public function getRequestTarget (): string {}
31
+ public function withRequestTarget ($ requestTarget ): RequestInterface {}
32
+ public function getMethod (): string {}
33
+ public function withMethod ($ method ): RequestInterface {}
34
+ public function getUri (): UriInterface {}
35
+ public function withUri (UriInterface $ uri , $ preserveHost = false ): RequestInterface {}
36
36
});
37
37
}
38
38
0 commit comments