We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e470c6 commit 611b0d8Copy full SHA for 611b0d8
system/Encryption/Encryption.php
@@ -138,7 +138,7 @@ public function initialize(?EncryptionConfig $config = null)
138
$handlerName = 'CodeIgniter\\Encryption\\Handlers\\' . $this->driver . 'Handler';
139
$this->encrypter = new $handlerName($config);
140
141
- if ($config->previousKeys !== []) {
+ if (($config->previousKeys ?? []) !== []) {
142
$this->encrypter = new KeyRotationDecorator($this->encrypter, $config->previousKeys);
143
}
144
0 commit comments