We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 062de33 commit f9226c1Copy full SHA for f9226c1
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