Skip to content

Commit f9226c1

Browse files
michalsnsamsonasik
andcommitted
apply code suggestions
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
1 parent 062de33 commit f9226c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Encryption/Encryption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function initialize(?EncryptionConfig $config = null)
138138
$handlerName = 'CodeIgniter\\Encryption\\Handlers\\' . $this->driver . 'Handler';
139139
$this->encrypter = new $handlerName($config);
140140

141-
if ($config->previousKeys !== []) {
141+
if (($config->previousKeys ?? []) !== []) {
142142
$this->encrypter = new KeyRotationDecorator($this->encrypter, $config->previousKeys);
143143
}
144144

0 commit comments

Comments
 (0)