Skip to content

Commit 82e7b1c

Browse files
committed
Loosen interface returns
1 parent 4cb495c commit 82e7b1c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

system/HTTP/MessageInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface MessageInterface
2525
*
2626
* @return $this
2727
*/
28-
public function setBody($data): self;
28+
public function setBody($data);
2929

3030
/**
3131
* Appends data to the body of the current message.
@@ -34,7 +34,7 @@ public function setBody($data): self;
3434
*
3535
* @return $this
3636
*/
37-
public function appendBody($data): self;
37+
public function appendBody($data);
3838

3939
/**
4040
* Populates the $headers array with any headers the getServer knows about.
@@ -66,7 +66,7 @@ public function header($name);
6666
*
6767
* @return $this
6868
*/
69-
public function setHeader(string $name, $value): self;
69+
public function setHeader(string $name, $value);
7070

7171
/**
7272
* Removes a header from the list of headers we track.
@@ -75,7 +75,7 @@ public function setHeader(string $name, $value): self;
7575
*
7676
* @return $this
7777
*/
78-
public function removeHeader(string $name): self;
78+
public function removeHeader(string $name);
7979

8080
/**
8181
* Adds an additional header value to any headers that accept
@@ -86,7 +86,7 @@ public function removeHeader(string $name): self;
8686
*
8787
* @return $this
8888
*/
89-
public function appendHeader(string $name, ?string $value): self;
89+
public function appendHeader(string $name, ?string $value);
9090

9191
/**
9292
* Adds an additional header value to any headers that accept
@@ -97,7 +97,7 @@ public function appendHeader(string $name, ?string $value): self;
9797
*
9898
* @return $this
9999
*/
100-
public function prependHeader(string $name, string $value): self;
100+
public function prependHeader(string $name, string $value);
101101

102102
/**
103103
* Sets the HTTP protocol version.
@@ -108,5 +108,5 @@ public function prependHeader(string $name, string $value): self;
108108
*
109109
* @throws HTTPException For invalid protocols
110110
*/
111-
public function setProtocolVersion(string $version): self;
111+
public function setProtocolVersion(string $version);
112112
}

0 commit comments

Comments
 (0)