Skip to content

Commit 27c5310

Browse files
committed
clean up method argument handling
1 parent 25229e8 commit 27c5310

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Cookie.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,9 @@ public static function fromString(string $cookie, bool $decode = false): static
7575
* @see self::__construct
7676
*
7777
* @param self::SAMESITE_*|''|null $sameSite
78-
* @param bool $partitioned
7978
*/
80-
public static function create(string $name, string $value = null, int|string|\DateTimeInterface $expire = 0, ?string $path = '/', string $domain = null, bool $secure = null, bool $httpOnly = true, bool $raw = false, ?string $sameSite = self::SAMESITE_LAX /* , bool $partitioned = false */): self
79+
public static function create(string $name, string $value = null, int|string|\DateTimeInterface $expire = 0, ?string $path = '/', string $domain = null, bool $secure = null, bool $httpOnly = true, bool $raw = false, ?string $sameSite = self::SAMESITE_LAX, bool $partitioned = false): self
8180
{
82-
$partitioned = 9 < \func_num_args() ? func_get_arg(9) : false;
83-
8481
return new self($name, $value, $expire, $path, $domain, $secure, $httpOnly, $raw, $sameSite, $partitioned);
8582
}
8683

0 commit comments

Comments
 (0)