Skip to content

Commit

Permalink
Fix docblock and typehints.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Feb 26, 2019
1 parent f4a8a5b commit 6577702
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Http/Cookie/CookieCollection.php
Expand Up @@ -101,7 +101,7 @@ public function count(): int
* @param \Cake\Http\Cookie\CookieInterface $cookie Cookie instance to add.
* @return static
*/
public function add(CookieInterface $cookie)
public function add(CookieInterface $cookie): CookieCollectionInterface
{
$new = clone $this;
$new->cookies[$cookie->getId()] = $cookie;
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Cookie/CookieCollectionInterface.php
Expand Up @@ -9,7 +9,7 @@
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 3.5.0
* @since 4.0.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Http\Cookie;
Expand All @@ -32,7 +32,7 @@ interface CookieCollectionInterface extends IteratorAggregate, Countable
* @param \Cake\Http\Cookie\CookieInterface $cookie Cookie instance to add.
* @return static
*/
public function add(CookieInterface $cookie);
public function add(CookieInterface $cookie): self;

/**
* Get the first cookie by name.
Expand Down
6 changes: 3 additions & 3 deletions src/Http/Response.php
Expand Up @@ -1318,12 +1318,12 @@ protected function convertCookieToArray(CookieInterface $cookie): array
}

/**
* Sets the CookieCollection to the response
* Sets the CookieCollection to the response.
*
* @return \Cake\Http\Cookie\CookieCollection
* @param \Cake\Http\Cookie\CookieCollectionInterface $cookieCollection Cookie collection to set.
* @return static
*/
public function withCookieCollection(CookieCollectionInterface $cookieCollection): ResponseInterface
public function withCookieCollection(CookieCollectionInterface $cookieCollection): self
{
$new = clone $this;
$new->_cookies = $cookieCollection;
Expand Down

0 comments on commit 6577702

Please sign in to comment.