Skip to content

Commit 4712037

Browse files
committed
Fix a missing test when access a uninitialized property in the cypher key storage after adding typed properties
1 parent bbffb44 commit 4712037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Session/CipherKeyStorage.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function setCipherKey(string $cipherKey): void
6161
*/
6262
public function getCipherKey(): string
6363
{
64-
if (!$this->cipherKey) {
64+
if (!isset($this->cipherKey) || !$this->cipherKey) {
6565
$this->cipherKey = hex2bin($this->session->get(self::SESSION_CIPHER_KEY));
6666
}
6767
if (!trim($this->cipherKey)) {

0 commit comments

Comments
 (0)