Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor changes to the cookie code
  • Loading branch information
burzum committed Mar 5, 2017
1 parent d1b95b8 commit 97777da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Cookie/Cookie.php
Expand Up @@ -212,9 +212,9 @@ protected function validateName($name)
}

/**
* Gets the raw cookie value
* Gets the cookie value
*
* @return string
* @return string|array
*/
public function getValue()
{
Expand Down
6 changes: 6 additions & 0 deletions src/Http/Cookie/CookieCryptTrait.php
Expand Up @@ -131,6 +131,12 @@ protected function _encrypt($value)
}

$encrypt = $this->encryptionCipher;
if ($encrypt === false) {
throw new RuntimeException(
'Encryption is disable, no cipher given.'
);
}

$cipher = null;
$key = $this->getEncryptionKey();

Expand Down

0 comments on commit 97777da

Please sign in to comment.