diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 15:25:49 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-05 15:25:49 +0100 |
commit | 39da78b2588a60a2f43fb8f77448ab9604550978 (patch) | |
tree | 4d0489559a6040ef929921444e6b207adb6824ab /system/libraries/Encryption.php | |
parent | 318c485b7b83356543c9aa7ab65464893d7eb8fe (diff) |
Fix some minor PHP 8.1 deprecation warnings
Diffstat (limited to 'system/libraries/Encryption.php')
-rw-r--r-- | system/libraries/Encryption.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php index db6b30d46..933f6f232 100644 --- a/system/libraries/Encryption.php +++ b/system/libraries/Encryption.php @@ -476,7 +476,7 @@ class CI_Encryption { $iv = ($iv_size = openssl_cipher_iv_length($params['handle'])) ? $this->create_key($iv_size) - : NULL; + : ''; $data = openssl_encrypt( $data, @@ -585,7 +585,7 @@ class CI_Encryption { } else { - $iv = NULL; + $iv = ''; } if (mcrypt_generic_init($params['handle'], $params['key'], $iv) < 0) @@ -632,7 +632,7 @@ class CI_Encryption { } else { - $iv = NULL; + $iv = ''; } return empty($params['handle']) @@ -910,8 +910,8 @@ class CI_Encryption { protected static function strlen($str) { return (self::$func_overload) - ? mb_strlen($str, '8bit') - : strlen($str); + ? mb_strlen((string) $str, '8bit') + : strlen((string) $str); } // -------------------------------------------------------------------- |