Skip to content

Commit

Permalink
Update Cookies.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Suter committed May 4, 2019
1 parent 9cdb71a commit c32913d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cookies.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function __construct(array $cookies = [])
*
* @return static
*/
public function setDefaults(array $settings)
public function setDefaults(array $settings): self
{
$this->defaults = array_replace($this->defaults, $settings);

Expand All @@ -76,7 +76,7 @@ public function get(string $name, $default = null)
/**
* {@inheritdoc}
*/
public function set(string $name, $value)
public function set(string $name, $value): self
{
if (!is_array($value)) {
$value = ['value' => $value];
Expand Down

0 comments on commit c32913d

Please sign in to comment.