@@ -40,6 +40,9 @@ |
||
40 | 40 | return $target; |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param string $requestTarget |
|
45 | + */ |
|
43 | 46 | public function withRequestTarget($requestTarget): self |
44 | 47 | { |
45 | 48 | if (\preg_match('#\s#', $requestTarget)) { |
@@ -85,6 +85,9 @@ discard block |
||
85 | 85 | } |
86 | 86 | } |
87 | 87 | |
88 | + /** |
|
89 | + * @param integer $error |
|
90 | + */ |
|
88 | 91 | private function setError($error): void |
89 | 92 | { |
90 | 93 | if (false === \is_int($error)) { |
@@ -98,6 +101,9 @@ discard block |
||
98 | 101 | $this->error = $error; |
99 | 102 | } |
100 | 103 | |
104 | + /** |
|
105 | + * @param integer $size |
|
106 | + */ |
|
101 | 107 | private function setSize($size): void |
102 | 108 | { |
103 | 109 | if (false === \is_int($size)) { |
@@ -107,6 +113,9 @@ discard block |
||
107 | 113 | $this->size = $size; |
108 | 114 | } |
109 | 115 | |
116 | + /** |
|
117 | + * @param string|null $clientFilename |
|
118 | + */ |
|
110 | 119 | private function setClientFilename($clientFilename): void |
111 | 120 | { |
112 | 121 | if ($clientFilename !== null && !\is_string($clientFilename)) { |
@@ -116,6 +125,9 @@ discard block |
||
116 | 125 | $this->clientFilename = $clientFilename; |
117 | 126 | } |
118 | 127 | |
128 | + /** |
|
129 | + * @param string|null $clientMediaType |
|
130 | + */ |
|
119 | 131 | private function setClientMediaType($clientMediaType): void |
120 | 132 | { |
121 | 133 | if ($clientMediaType !== null && !\is_string($clientMediaType)) { |
@@ -210,8 +222,8 @@ discard block |
||
210 | 222 | * |
211 | 223 | * @author Michael Dowling and contributors to guzzlehttp/psr7 |
212 | 224 | * |
213 | - * @param StreamInterface $source Stream to read from |
|
214 | - * @param StreamInterface $dest Stream to write to |
|
225 | + * @param \Psr\Http\Message\StreamInterface $source Stream to read from |
|
226 | + * @param \Psr\Http\Message\StreamInterface $dest Stream to write to |
|
215 | 227 | * @param int $maxLen Maximum number of bytes to read. Pass -1 |
216 | 228 | * to read the entire stream |
217 | 229 | * |