Skip to content

Commit a733662

Browse files
committed
Add since tags
1 parent aa4aa24 commit a733662

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/Cookie.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ public function isSecure() : bool
287287
}
288288

289289
/**
290+
* @since 7
291+
*
290292
* @param bool $partitioned
291293
*
292294
* @see https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbox/Partitioned_cookies
@@ -301,6 +303,8 @@ public function setPartitioned(bool $partitioned = true) : static
301303
}
302304

303305
/**
306+
* @since 7
307+
*
304308
* @return bool
305309
*/
306310
#[Pure]

src/HeaderTrait.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ trait HeaderTrait
233233
'sec-websocket-version' => 'Sec-WebSocket-Version',
234234
];
235235

236+
/**
237+
* @since 7
238+
*
239+
* @param string $name
240+
*
241+
* @return bool
242+
*/
236243
public static function hasName(string $name) : bool
237244
{
238245
return isset(static::$headers[$name]);

src/ResponseDownload.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ public function setDownload(
115115
return $this;
116116
}
117117

118+
/**
119+
* @since 7
120+
*
121+
* @return string
122+
*/
118123
private function makeContentType() : string
119124
{
120125
return $this->contentType
@@ -341,6 +346,11 @@ private function readFile() : void
341346
}
342347
}
343348

349+
/**
350+
* @since 7
351+
*
352+
* @return bool
353+
*/
344354
private function isConnectionStatusNormal() : bool
345355
{
346356
return \connection_status() === \CONNECTION_NORMAL;

0 commit comments

Comments
 (0)