Add parameter types from psr/http-message to LegacyPlaceholderResponse
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Apr 2023 08:38:09 +0000 (10:38 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 20 Apr 2023 08:38:09 +0000 (10:38 +0200)
wcfsetup/install/files/lib/http/LegacyPlaceholderResponse.class.php

index 2860864791e2a51cab0ff364db2f7321702c4650..e1b936d2330fb8c19160c0553f8cd65745704cdf 100644 (file)
@@ -35,7 +35,7 @@ final class LegacyPlaceholderResponse implements ResponseInterface
         $this->throwException();
     }
 
-    public function withStatus($code, $reasonPhrase = '')
+    public function withStatus(int $code, string $reasonPhrase = '')
     {
         $this->throwException();
     }
@@ -50,7 +50,7 @@ final class LegacyPlaceholderResponse implements ResponseInterface
         $this->throwException();
     }
 
-    public function withProtocolVersion($version)
+    public function withProtocolVersion(string $version)
     {
         $this->throwException();
     }
@@ -60,32 +60,32 @@ final class LegacyPlaceholderResponse implements ResponseInterface
         $this->throwException();
     }
 
-    public function hasHeader($name)
+    public function hasHeader(string $name)
     {
         $this->throwException();
     }
 
-    public function getHeader($name)
+    public function getHeader(string $name)
     {
         $this->throwException();
     }
 
-    public function getHeaderLine($name)
+    public function getHeaderLine(string $name)
     {
         $this->throwException();
     }
 
-    public function withHeader($name, $value)
+    public function withHeader(string $name, $value)
     {
         $this->throwException();
     }
 
-    public function withAddedHeader($name, $value)
+    public function withAddedHeader(string $name, $value)
     {
         $this->throwException();
     }
 
-    public function withoutHeader($name)
+    public function withoutHeader(string $name)
     {
         $this->throwException();
     }