Skip to content

Commit

Permalink
[5.6] make() signature in contract matches implementation (#21553)
Browse files Browse the repository at this point in the history
* make method signature in contract matches implementation

* forever() method matched to implementation
  • Loading branch information
Dylan-DPC authored and taylorotwell committed Oct 6, 2017
1 parent fa9515e commit 5ce5b6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Illuminate/Contracts/Cookie/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ interface Factory
* @param string $domain
* @param bool $secure
* @param bool $httpOnly
* @param bool $raw
* @param string|null $sameSite
* @return \Symfony\Component\HttpFoundation\Cookie
*/
public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true);
public function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null);

/**
* Create a cookie that lasts "forever" (five years).
Expand All @@ -27,9 +29,11 @@ public function make($name, $value, $minutes = 0, $path = null, $domain = null,
* @param string $domain
* @param bool $secure
* @param bool $httpOnly
* @param bool $raw
* @param string|null $sameSite
* @return \Symfony\Component\HttpFoundation\Cookie
*/
public function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true);
public function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null);

/**
* Expire the given cookie.
Expand Down

0 comments on commit 5ce5b6a

Please sign in to comment.